pub struct ClientClient {
pub object: Object,
pub id: String,
pub sessions: Vec<ClientSession>,
pub sign_in: Option<Box<ClientSignIn>>,
pub sign_up: Option<Box<ClientSignUp>>,
pub last_active_session_id: Option<String>,
pub cookie_expires_at: Option<i64>,
pub captcha_bypass: bool,
pub created_at: i64,
pub updated_at: i64,
}Fields§
§object: ObjectString representing the object’s type. Objects of the same type share the same value.
id: StringString representing the identifier of the session.
sessions: Vec<ClientSession>§sign_in: Option<Box<ClientSignIn>>§sign_up: Option<Box<ClientSignUp>>§last_active_session_id: Option<String>Last active session_id.
Unix timestamp of the cookie expiration.
captcha_bypass: boolWhether the client can bypass CAPTCHA.
created_at: i64Unix timestamp of creation.
updated_at: i64Unix timestamp of last update.
Implementations§
Source§impl ClientClient
impl ClientClient
pub fn new( object: Object, id: String, sessions: Vec<ClientSession>, sign_in: Option<ClientSignIn>, sign_up: Option<ClientSignUp>, last_active_session_id: Option<String>, cookie_expires_at: Option<i64>, captcha_bypass: bool, created_at: i64, updated_at: i64, ) -> ClientClient
Trait Implementations§
Source§impl Clone for ClientClient
impl Clone for ClientClient
Source§fn clone(&self) -> ClientClient
fn clone(&self) -> ClientClient
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 Debug for ClientClient
impl Debug for ClientClient
Source§impl Default for ClientClient
impl Default for ClientClient
Source§fn default() -> ClientClient
fn default() -> ClientClient
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientClient
impl<'de> Deserialize<'de> for ClientClient
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
Source§impl From<SchemasClientClient> for ClientClient
impl From<SchemasClientClient> for ClientClient
Source§fn from(value: SchemasClientClient) -> Self
fn from(value: SchemasClientClient) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClientClient
impl PartialEq for ClientClient
Source§impl Serialize for ClientClient
impl Serialize for ClientClient
impl StructuralPartialEq for ClientClient
Auto Trait Implementations§
impl Freeze for ClientClient
impl RefUnwindSafe for ClientClient
impl Send for ClientClient
impl Sync for ClientClient
impl Unpin for ClientClient
impl UnwindSafe for ClientClient
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