pub struct PackInvitation {
pub access: PackAccessType,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub invitation_id: String,
pub invitee_email: String,
pub inviter_user_id: i64,
pub pack_id: f64,
}Expand description
Metadata about a Pack invitation.
JSON schema
{
"description": "Metadata about a Pack invitation.",
"type": "object",
"required": [
"access",
"createdAt",
"expiresAt",
"invitationId",
"inviteeEmail",
"inviterUserId",
"packId"
],
"properties": {
"access": {
"$ref": "#/components/schemas/PackAccessType"
},
"createdAt": {
"description": "Timestamp when the invitation was created",
"type": "string",
"format": "date-time"
},
"expiresAt": {
"description": "Timestamp when the invitation expires",
"type": "string",
"format": "date-time"
},
"invitationId": {
"description": "ID of the invitation",
"examples": [
"550e8400-e29b-41d4-a716-446655440000"
],
"type": "string"
},
"inviteeEmail": {
"description": "Email address of the invited user",
"examples": [
"user@example.com"
],
"type": "string"
},
"inviterUserId": {
"description": "User ID of the user who created this invitation",
"examples": [
456
],
"type": "integer"
},
"packId": {
"description": "ID of the Pack",
"examples": [
123
],
"type": "number"
}
},
"additionalProperties": false,
"x-schema-name": "PackInvitation"
}Fields§
§access: PackAccessType§created_at: DateTime<Utc>Timestamp when the invitation was created
expires_at: DateTime<Utc>Timestamp when the invitation expires
invitation_id: StringID of the invitation
invitee_email: StringEmail address of the invited user
inviter_user_id: i64User ID of the user who created this invitation
pack_id: f64Trait Implementations§
Source§impl Clone for PackInvitation
impl Clone for PackInvitation
Source§fn clone(&self) -> PackInvitation
fn clone(&self) -> PackInvitation
Returns a duplicate 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 PackInvitation
impl Debug for PackInvitation
Source§impl<'de> Deserialize<'de> for PackInvitation
impl<'de> Deserialize<'de> for PackInvitation
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<&PackInvitation> for PackInvitation
impl From<&PackInvitation> for PackInvitation
Source§fn from(value: &PackInvitation) -> Self
fn from(value: &PackInvitation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackInvitation
impl RefUnwindSafe for PackInvitation
impl Send for PackInvitation
impl Sync for PackInvitation
impl Unpin for PackInvitation
impl UnwindSafe for PackInvitation
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