Struct InvitationOptions
#[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§
§impl Clone for InvitationOptions
impl Clone for InvitationOptions
§fn clone(&self) -> InvitationOptions
fn clone(&self) -> InvitationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvitationOptions
§impl Debug for InvitationOptions
impl Debug for InvitationOptions
§impl Default for InvitationOptions
impl Default for InvitationOptions
§fn default() -> InvitationOptions
fn default() -> InvitationOptions
Returns the “default value” for a type. Read more
impl Eq for InvitationOptions
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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