pub struct InvitationCreateInput {
pub created_at: Option<DateTime<Utc>>,
pub email: String,
pub id: Option<String>,
pub object: Option<String>,
pub organization_id: String,
pub role: InvitationCreateInputRole,
}
Expand description
InvitationCreateInput
JSON schema
{
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/Invitation"
}
],
"required": [
"email",
"organization_id",
"role"
]
}
Fields§
§created_at: Option<DateTime<Utc>>
Time at which the project was created
email: 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: String
Unique identifier for the organization the project belongs to
role: InvitationCreateInputRole
The future role of the user in the organization.
Implementations§
Source§impl InvitationCreateInput
impl InvitationCreateInput
pub fn builder() -> InvitationCreateInput
Trait Implementations§
Source§impl Clone for InvitationCreateInput
impl Clone for InvitationCreateInput
Source§fn clone(&self) -> InvitationCreateInput
fn clone(&self) -> InvitationCreateInput
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 InvitationCreateInput
impl Debug for InvitationCreateInput
Source§impl<'de> Deserialize<'de> for InvitationCreateInput
impl<'de> Deserialize<'de> for InvitationCreateInput
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<&InvitationCreateInput> for InvitationCreateInput
impl From<&InvitationCreateInput> for InvitationCreateInput
Source§fn from(value: &InvitationCreateInput) -> Self
fn from(value: &InvitationCreateInput) -> Self
Converts to this type from the input type.
Source§impl From<InvitationCreateInput> for InvitationCreateInput
impl From<InvitationCreateInput> for InvitationCreateInput
Source§fn from(value: InvitationCreateInput) -> Self
fn from(value: InvitationCreateInput) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for InvitationCreateInput
impl JsonSchema for InvitationCreateInput
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 InvitationCreateInput
impl Serialize for InvitationCreateInput
Source§impl TryFrom<InvitationCreateInput> for InvitationCreateInput
impl TryFrom<InvitationCreateInput> for InvitationCreateInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: InvitationCreateInput) -> Result<Self, ConversionError>
fn try_from(value: InvitationCreateInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for InvitationCreateInput
impl RefUnwindSafe for InvitationCreateInput
impl Send for InvitationCreateInput
impl Sync for InvitationCreateInput
impl Unpin for InvitationCreateInput
impl UnwindSafe for InvitationCreateInput
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