pub struct CUserAccountCreateFriendInviteTokenResponse {
pub invite_token: Option<String>,
pub invite_limit: Option<u64>,
pub invite_duration: Option<u64>,
pub time_created: Option<u32>,
pub valid: Option<bool>,
}Expand description
Create friend invite token response
Fields§
§invite_token: Option<String>The invite token string
invite_limit: Option<u64>Maximum uses for this invite
invite_duration: Option<u64>Duration in seconds
time_created: Option<u32>Unix timestamp when created
valid: Option<bool>Whether the token is currently valid
Implementations§
Source§impl CUserAccountCreateFriendInviteTokenResponse
impl CUserAccountCreateFriendInviteTokenResponse
Sourcepub fn invite_token(&self) -> &str
pub fn invite_token(&self) -> &str
Returns the value of invite_token, or the default value if invite_token is unset.
Sourcepub fn invite_limit(&self) -> u64
pub fn invite_limit(&self) -> u64
Returns the value of invite_limit, or the default value if invite_limit is unset.
Sourcepub fn invite_duration(&self) -> u64
pub fn invite_duration(&self) -> u64
Returns the value of invite_duration, or the default value if invite_duration is unset.
Sourcepub fn time_created(&self) -> u32
pub fn time_created(&self) -> u32
Returns the value of time_created, or the default value if time_created is unset.
Trait Implementations§
Source§impl Clone for CUserAccountCreateFriendInviteTokenResponse
impl Clone for CUserAccountCreateFriendInviteTokenResponse
Source§fn clone(&self) -> CUserAccountCreateFriendInviteTokenResponse
fn clone(&self) -> CUserAccountCreateFriendInviteTokenResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Message for CUserAccountCreateFriendInviteTokenResponse
impl Message for CUserAccountCreateFriendInviteTokenResponse
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CUserAccountCreateFriendInviteTokenResponse
impl PartialEq for CUserAccountCreateFriendInviteTokenResponse
Source§fn eq(&self, other: &CUserAccountCreateFriendInviteTokenResponse) -> bool
fn eq(&self, other: &CUserAccountCreateFriendInviteTokenResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CUserAccountCreateFriendInviteTokenResponse
Auto Trait Implementations§
impl Freeze for CUserAccountCreateFriendInviteTokenResponse
impl RefUnwindSafe for CUserAccountCreateFriendInviteTokenResponse
impl Send for CUserAccountCreateFriendInviteTokenResponse
impl Sync for CUserAccountCreateFriendInviteTokenResponse
impl Unpin for CUserAccountCreateFriendInviteTokenResponse
impl UnsafeUnpin for CUserAccountCreateFriendInviteTokenResponse
impl UnwindSafe for CUserAccountCreateFriendInviteTokenResponse
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