pub struct InviteRow {
pub id: String,
pub max_uses: Option<u32>,
pub uses: u32,
pub created: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
One row of invite list.
Fields§
§id: StringShort identifier (first 12 hex characters of the token’s SHA-256). The token itself is not stored, so it cannot be listed.
max_uses: Option<u32>Redemption cap (None = unlimited).
uses: u32Redemptions so far.
created: DateTime<Utc>Creation time.
expires_at: Option<DateTime<Utc>>Optional expiry.
Trait Implementations§
impl Eq for InviteRow
impl StructuralPartialEq for InviteRow
Auto Trait Implementations§
impl Freeze for InviteRow
impl RefUnwindSafe for InviteRow
impl Send for InviteRow
impl Sync for InviteRow
impl Unpin for InviteRow
impl UnsafeUnpin for InviteRow
impl UnwindSafe for InviteRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.