pub struct Invitation {
pub created_at: Option<DateTime<Utc>>,
pub email: Option<String>,
pub id: Option<String>,
pub object: Option<String>,
pub organization_id: Option<String>,
pub role: Option<InvitationRole>,
}
Expand description
An invitation is a request to join an organization. An invitation is sent to an email address, and the recipient can accept or decline the invitation.
JSON schema
{
"description": "An invitation is a request to join an organization. An invitation is sent to an email address, and the recipient can accept or decline the invitation.",
"type": "object",
"properties": {
"created_at": {
"description": "Time at which the project was created",
"readOnly": true,
"examples": [
"2022-03-01T00:00:00Z"
],
"type": "string",
"format": "date-time"
},
"email": {
"description": "Email of the user",
"type": "string"
},
"id": {
"description": "Unique identifier for the invitation",
"readOnly": true,
"type": "string"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value",
"readOnly": true,
"examples": [
"project"
],
"type": "string"
},
"organization_id": {
"description": "Unique identifier for the organization the project belongs to",
"examples": [
"d290f1ee-6c54-4b01-90e6-d701748f0851"
],
"type": "string"
},
"role": {
"description": "The future role of the user in the organization.",
"type": "string",
"enum": [
"admin",
"member"
]
}
}
}
Fields§
§created_at: Option<DateTime<Utc>>
Time at which the project was created
email: Option<String>
Email of the user
id: Option<String>
Unique identifier for the invitation
object: Option<String>
String representing the object’s type. Objects of the same type share the same value
organization_id: Option<String>
Unique identifier for the organization the project belongs to
role: Option<InvitationRole>
The future role of the user in the organization.
Implementations§
Source§impl Invitation
impl Invitation
pub fn builder() -> Invitation
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§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
Source§impl From<&Invitation> for Invitation
impl From<&Invitation> for Invitation
Source§fn from(value: &Invitation) -> Self
fn from(value: &Invitation) -> Self
Converts to this type from the input type.
Source§impl From<Invitation> for Invitation
impl From<Invitation> for Invitation
Source§fn from(value: Invitation) -> Self
fn from(value: Invitation) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for Invitation
impl JsonSchema for Invitation
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for Invitation
impl Serialize for Invitation
Source§impl TryFrom<Invitation> for Invitation
impl TryFrom<Invitation> for Invitation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: Invitation) -> Result<Self, ConversionError>
fn try_from(value: Invitation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Invitation
impl RefUnwindSafe for Invitation
impl Send for Invitation
impl Sync for Invitation
impl Unpin for Invitation
impl UnwindSafe for Invitation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more