Struct google_classroom1::api::Invitation
source · pub struct Invitation {
pub course_id: Option<String>,
pub id: Option<String>,
pub role: Option<String>,
pub user_id: Option<String>,
}
Expand description
An invitation to join a course.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- accept invitations (none)
- create invitations (request|response)
- delete invitations (none)
- get invitations (response)
- list invitations (none)
Fields§
§course_id: Option<String>
Identifier of the course to invite the user to.
id: Option<String>
Identifier assigned by Classroom. Read-only.
role: Option<String>
Role to invite the user to have. Must not be COURSE_ROLE_UNSPECIFIED
.
user_id: Option<String>
Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following: * the numeric identifier for the user * the email address of the user * the string literal "me"
, indicating the requesting user
Trait Implementations§
source§impl Clone for Invitation
impl Clone for Invitation
source§fn clone(&self) -> Invitation
fn clone(&self) -> Invitation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Invitation
impl Debug for Invitation
source§impl Default for Invitation
impl Default for Invitation
source§fn default() -> Invitation
fn default() -> Invitation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Invitation
impl<'de> Deserialize<'de> for Invitation
source§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