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.
pub fn viewable_types(&self) -> Vec<MeetingType>ⓘ
pub fn viewable_types(&self) -> Vec<MeetingType>ⓘ
Get a list of the types of meetings viewable under this authorization.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for UserMeetingAuthorization
impl Send for UserMeetingAuthorization
impl Sync for UserMeetingAuthorization
impl Unpin for UserMeetingAuthorization
impl UnwindSafe for UserMeetingAuthorization
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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