pub struct CreateInvite {
pub kind: InviteKind,
pub note: Option<String>,
pub uses: Option<u32>,
pub expires_in_secs: Option<u64>,
pub role: Option<Role>,
}Expand description
An invite to make (CreateInvite). Each None is the server’s
default, as for the web UI’s inviteCreate: one use, 7 days, the
consumer role.
Fields§
§kind: InviteKind§note: Option<String>Who it is for, for the admins’ list: at most 64 characters, one line.
uses: Option<u32>How many times it may be redeemed: 1 to 100.
expires_in_secs: Option<u64>How long it lasts from now, in seconds: an hour to 30 days.
role: Option<Role>The role the accounts it makes get; only for create-user. A
portable-account invite with any role but consumer is
InvalidInput: a portable guest has no account here to hold one.
Trait Implementations§
Source§impl Clone for CreateInvite
impl Clone for CreateInvite
Source§impl Debug for CreateInvite
impl Debug for CreateInvite
Source§impl<'de> Deserialize<'de> for CreateInvite
impl<'de> Deserialize<'de> for CreateInvite
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
impl Eq for CreateInvite
Source§impl PartialEq for CreateInvite
impl PartialEq for CreateInvite
Source§impl Serialize for CreateInvite
impl Serialize for CreateInvite
impl StructuralPartialEq for CreateInvite
Auto Trait Implementations§
impl Forget for CreateInvite
impl Freeze for CreateInvite
impl Move for CreateInvite
impl RefUnwindSafe for CreateInvite
impl Send for CreateInvite
impl Sync for CreateInvite
impl Unpin for CreateInvite
impl UnsafeUnpin for CreateInvite
impl UnwindSafe for CreateInvite
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