Struct fiberplane_models::workspaces::WorkspaceInvite
source · #[non_exhaustive]pub struct WorkspaceInvite {
pub id: Base64Uuid,
pub sender: Base64Uuid,
pub receiver: String,
pub created_at: Timestamp,
pub expires_at: Timestamp,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Base64UuidID of the invitation.
sender: Base64UuidID of the user who sent the invitation.
receiver: StringEmail address of the invitee.
created_at: TimestampTimestamp at which the invitation was created.
expires_at: TimestampTimestamp at which the invitation expires.
Implementations§
source§impl WorkspaceInvite
impl WorkspaceInvite
sourcepub fn builder() -> WorkspaceInviteBuilder<((), (), (), (), ())>
pub fn builder() -> WorkspaceInviteBuilder<((), (), (), (), ())>
Create a builder for building WorkspaceInvite.
On the builder, call .id(...), .sender(...), .receiver(...), .created_at(...), .expires_at(...) to set the values of the fields.
Finally, call .build() to create the instance of WorkspaceInvite.
Trait Implementations§
source§impl Clone for WorkspaceInvite
impl Clone for WorkspaceInvite
source§fn clone(&self) -> WorkspaceInvite
fn clone(&self) -> WorkspaceInvite
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 WorkspaceInvite
impl Debug for WorkspaceInvite
source§impl<'de> Deserialize<'de> for WorkspaceInvite
impl<'de> Deserialize<'de> for WorkspaceInvite
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 PartialEq for WorkspaceInvite
impl PartialEq for WorkspaceInvite
source§fn eq(&self, other: &WorkspaceInvite) -> bool
fn eq(&self, other: &WorkspaceInvite) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for WorkspaceInvite
impl Serialize for WorkspaceInvite
impl Eq for WorkspaceInvite
impl StructuralPartialEq for WorkspaceInvite
Auto Trait Implementations§
impl Freeze for WorkspaceInvite
impl RefUnwindSafe for WorkspaceInvite
impl Send for WorkspaceInvite
impl Sync for WorkspaceInvite
impl Unpin for WorkspaceInvite
impl UnwindSafe for WorkspaceInvite
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