pub struct SignupInviteSummary {
pub invite_code: String,
pub status: i32,
pub created_at: Option<Timestamp>,
pub consumed: bool,
pub consumed_at: Option<Timestamp>,
}Fields§
§invite_code: StringHigh-entropy opaque code (the same value CreateSignupInvite returned).
status: i32§created_at: Option<Timestamp>§consumed: boolConsumed state carries no claimer identity anywhere: no claimer handle, subject, or account reference exists on this message or anywhere else in the response. Boolean + timestamp is sufficient to count and credit referrals without disclosing who claimed.
consumed_at: Option<Timestamp>Present when consumed.
Implementations§
Source§impl SignupInviteSummary
impl SignupInviteSummary
Sourcepub fn status(&self) -> SignupInviteOwnerStatus
pub fn status(&self) -> SignupInviteOwnerStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: SignupInviteOwnerStatus)
pub fn set_status(&mut self, value: SignupInviteOwnerStatus)
Sets status to the provided enum value.
Trait Implementations§
Source§impl Clone for SignupInviteSummary
impl Clone for SignupInviteSummary
Source§fn clone(&self) -> SignupInviteSummary
fn clone(&self) -> SignupInviteSummary
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 SignupInviteSummary
impl Debug for SignupInviteSummary
Source§impl Default for SignupInviteSummary
impl Default for SignupInviteSummary
impl Eq for SignupInviteSummary
Source§impl Hash for SignupInviteSummary
impl Hash for SignupInviteSummary
Source§impl Message for SignupInviteSummary
impl Message for SignupInviteSummary
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SignupInviteSummary
impl PartialEq for SignupInviteSummary
impl StructuralPartialEq for SignupInviteSummary
Auto Trait Implementations§
impl Freeze for SignupInviteSummary
impl RefUnwindSafe for SignupInviteSummary
impl Send for SignupInviteSummary
impl Sync for SignupInviteSummary
impl Unpin for SignupInviteSummary
impl UnsafeUnpin for SignupInviteSummary
impl UnwindSafe for SignupInviteSummary
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