pub struct InviteIssued {
pub token: String,
pub group: String,
pub remaining_uses: u32,
pub expires_at_epoch: Option<u64>,
pub metadata: Option<String>,
}Expand description
Response payload for AdminRequestKind::InviteIssue.
Fields§
§token: StringOpaque token (URL-safe base64). The caller delivers this to the redeemer out-of-band — e.g. printed by the CLI, surfaced by the gateway as a redeem URL fragment, or pasted into a chat.
group: StringGroup the redeemer will join on success.
remaining_uses: u32Number of remaining redemptions before the token is invalidated.
expires_at_epoch: Option<u64>Wall-clock Unix-epoch timestamp at which the token expires.
None when the issuer requested no expiry.
metadata: Option<String>Operator-supplied label (metadata from the issue request).
Trait Implementations§
Source§impl Clone for InviteIssued
impl Clone for InviteIssued
Source§fn clone(&self) -> InviteIssued
fn clone(&self) -> InviteIssued
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 moreSource§impl Debug for InviteIssued
impl Debug for InviteIssued
Source§impl<'de> Deserialize<'de> for InviteIssued
impl<'de> Deserialize<'de> for InviteIssued
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 InviteIssued
Source§impl PartialEq for InviteIssued
impl PartialEq for InviteIssued
Source§fn eq(&self, other: &InviteIssued) -> bool
fn eq(&self, other: &InviteIssued) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InviteIssued
impl Serialize for InviteIssued
impl StructuralPartialEq for InviteIssued
Auto Trait Implementations§
impl Freeze for InviteIssued
impl RefUnwindSafe for InviteIssued
impl Send for InviteIssued
impl Sync for InviteIssued
impl Unpin for InviteIssued
impl UnsafeUnpin for InviteIssued
impl UnwindSafe for InviteIssued
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.