pub struct CTwoFactorAddAuthenticatorRequest {
pub steamid: Option<u64>,
pub authenticator_time: Option<u64>,
pub serial_number: Option<u64>,
pub authenticator_type: Option<u32>,
pub device_identifier: Option<String>,
pub sms_phone_id: Option<String>,
pub http_headers: Vec<String>,
pub version: Option<u32>,
}Expand description
Add authenticator request
From steammessages_twofactor.steamclient.proto
Fields§
§steamid: Option<u64>§authenticator_time: Option<u64>§serial_number: Option<u64>§authenticator_type: Option<u32>§device_identifier: Option<String>§sms_phone_id: Option<String>§http_headers: Vec<String>§version: Option<u32>Implementations§
Source§impl CTwoFactorAddAuthenticatorRequest
impl CTwoFactorAddAuthenticatorRequest
Sourcepub fn steamid(&self) -> u64
pub fn steamid(&self) -> u64
Returns the value of steamid, or the default value if steamid is unset.
Sourcepub fn authenticator_time(&self) -> u64
pub fn authenticator_time(&self) -> u64
Returns the value of authenticator_time, or the default value if authenticator_time is unset.
Sourcepub fn serial_number(&self) -> u64
pub fn serial_number(&self) -> u64
Returns the value of serial_number, or the default value if serial_number is unset.
Sourcepub fn authenticator_type(&self) -> u32
pub fn authenticator_type(&self) -> u32
Returns the value of authenticator_type, or the default value if authenticator_type is unset.
Sourcepub fn device_identifier(&self) -> &str
pub fn device_identifier(&self) -> &str
Returns the value of device_identifier, or the default value if device_identifier is unset.
Sourcepub fn sms_phone_id(&self) -> &str
pub fn sms_phone_id(&self) -> &str
Returns the value of sms_phone_id, or the default value if sms_phone_id is unset.
Trait Implementations§
Source§impl Clone for CTwoFactorAddAuthenticatorRequest
impl Clone for CTwoFactorAddAuthenticatorRequest
Source§fn clone(&self) -> CTwoFactorAddAuthenticatorRequest
fn clone(&self) -> CTwoFactorAddAuthenticatorRequest
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 CTwoFactorAddAuthenticatorRequest
impl Message for CTwoFactorAddAuthenticatorRequest
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 CTwoFactorAddAuthenticatorRequest
impl PartialEq for CTwoFactorAddAuthenticatorRequest
Source§fn eq(&self, other: &CTwoFactorAddAuthenticatorRequest) -> bool
fn eq(&self, other: &CTwoFactorAddAuthenticatorRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CTwoFactorAddAuthenticatorRequest
Auto Trait Implementations§
impl Freeze for CTwoFactorAddAuthenticatorRequest
impl RefUnwindSafe for CTwoFactorAddAuthenticatorRequest
impl Send for CTwoFactorAddAuthenticatorRequest
impl Sync for CTwoFactorAddAuthenticatorRequest
impl Unpin for CTwoFactorAddAuthenticatorRequest
impl UnsafeUnpin for CTwoFactorAddAuthenticatorRequest
impl UnwindSafe for CTwoFactorAddAuthenticatorRequest
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