Struct telescope::api::rcos::meetings::authorization_for::UserMeetingAuthorization[][src]

pub struct UserMeetingAuthorization {
    pub user_id: Option<uuid>,
    role: UserRole,
    is_current_coordinator: bool,
    is_current_mentor: bool,
}
Expand description

Info on the user that dictates their ability to access meeting data.

Fields

user_id: Option<uuid>

The user’s ID.

role: UserRole

The user’s role. Faculty advisors can access just about anything.

is_current_coordinator: bool

Is this user a coordinator during an ongoing semester?

is_current_mentor: bool

Is this user a mentor during an ongoing semester?

Implementations

Create an authorization object for a faculty advisor.

Can the user associated with this authorization view draft meetings?

Can the user associated with this authorization view meetings of a given type?

Can the user associated with this authorization edit meetings with a given type and optionally specified host user ID?

Can the user associated with this authorization edit the meeting

Can the user associated with this authorization delete meetings? This is currently just coordinators and faculty advisors.

Can the user associated with this authorization create meetings? This is currently just coordinators and faculty advisors.

Get a list of the types of meetings viewable under this authorization.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more