pub struct Invitation {
pub pk: Uuid,
pub name: String,
pub expires: Option<String>,
pub fixed_data: Option<HashMap<String, Value>>,
pub created_by: Box<GroupMember>,
pub single_use: Option<bool>,
pub flow: Option<Option<Uuid>>,
pub flow_obj: Box<Flow>,
}
Expand description
Invitation : Invitation Serializer
Fields§
§pk: Uuid
§name: String
§expires: Option<String>
§fixed_data: Option<HashMap<String, Value>>
§created_by: Box<GroupMember>
§single_use: Option<bool>
When enabled, the invitation will be deleted after usage.
flow: Option<Option<Uuid>>
When set, only the configured flow can use this invitation.
flow_obj: Box<Flow>
Implementations§
Source§impl Invitation
impl Invitation
Sourcepub fn new(
pk: Uuid,
name: String,
created_by: GroupMember,
flow_obj: Flow,
) -> Invitation
pub fn new( pk: Uuid, name: String, created_by: GroupMember, flow_obj: Flow, ) -> Invitation
Invitation Serializer
Trait Implementations§
Source§impl Clone for Invitation
impl Clone for Invitation
Source§fn clone(&self) -> Invitation
fn clone(&self) -> Invitation
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 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
Source§impl PartialEq for Invitation
impl PartialEq for Invitation
Source§impl Serialize for Invitation
impl Serialize for Invitation
impl StructuralPartialEq for Invitation
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