#[non_exhaustive]pub struct InvitationOptions {
pub valid_for: Duration,
pub uses: u32,
}Expand description
How TrustStore::invite makes an invitation.
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.valid_for: DurationHow long the invitation can be redeemed, in whole seconds. Default 24 hours; zero is an error.
uses: u32How many times it can be redeemed. Default 1; zero is an error.
Trait Implementations§
Source§impl Clone for InvitationOptions
impl Clone for InvitationOptions
impl Copy for InvitationOptions
Source§impl Debug for InvitationOptions
impl Debug for InvitationOptions
Source§impl Default for InvitationOptions
impl Default for InvitationOptions
impl Eq for InvitationOptions
Source§impl PartialEq for InvitationOptions
impl PartialEq for InvitationOptions
impl StructuralPartialEq for InvitationOptions
Auto Trait Implementations§
impl Freeze for InvitationOptions
impl RefUnwindSafe for InvitationOptions
impl Send for InvitationOptions
impl Sync for InvitationOptions
impl Unpin for InvitationOptions
impl UnsafeUnpin for InvitationOptions
impl UnwindSafe for InvitationOptions
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