Struct dropbox_sdk::team::MobileClientSession
source · [−]#[non_exhaustive]pub struct MobileClientSession {
pub session_id: String,
pub device_name: String,
pub client_type: MobileClientPlatform,
pub ip_address: Option<String>,
pub country: Option<String>,
pub created: Option<DropboxTimestamp>,
pub updated: Option<DropboxTimestamp>,
pub client_version: Option<String>,
pub os_version: Option<String>,
pub last_carrier: Option<String>,
}Available on crate feature
dbx_team only.Expand description
Information about linked Dropbox mobile client sessions.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe session id.
device_name: StringThe device name.
client_type: MobileClientPlatformThe mobile application type.
ip_address: Option<String>The IP address of the last activity from this session.
country: Option<String>The country from which the last activity from this session was made.
created: Option<DropboxTimestamp>The time this session was created.
updated: Option<DropboxTimestamp>The time of the last activity from this session.
client_version: Option<String>The dropbox client version.
os_version: Option<String>The hosting OS version.
last_carrier: Option<String>last carrier used by the device.
Implementations
sourceimpl MobileClientSession
impl MobileClientSession
pub fn new(
session_id: String,
device_name: String,
client_type: MobileClientPlatform
) -> Self
pub fn with_ip_address(self, value: String) -> Self
pub fn with_country(self, value: String) -> Self
pub fn with_created(self, value: DropboxTimestamp) -> Self
pub fn with_updated(self, value: DropboxTimestamp) -> Self
pub fn with_client_version(self, value: String) -> Self
pub fn with_os_version(self, value: String) -> Self
pub fn with_last_carrier(self, value: String) -> Self
Trait Implementations
sourceimpl Clone for MobileClientSession
impl Clone for MobileClientSession
sourcefn clone(&self) -> MobileClientSession
fn clone(&self) -> MobileClientSession
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MobileClientSession
impl Debug for MobileClientSession
sourceimpl<'de> Deserialize<'de> for MobileClientSession
impl<'de> Deserialize<'de> for MobileClientSession
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MobileClientSession> for MobileClientSession
impl PartialEq<MobileClientSession> for MobileClientSession
sourcefn eq(&self, other: &MobileClientSession) -> bool
fn eq(&self, other: &MobileClientSession) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MobileClientSession) -> bool
fn ne(&self, other: &MobileClientSession) -> bool
This method tests for !=.
sourceimpl Serialize for MobileClientSession
impl Serialize for MobileClientSession
impl Eq for MobileClientSession
impl StructuralEq for MobileClientSession
impl StructuralPartialEq for MobileClientSession
Auto Trait Implementations
impl RefUnwindSafe for MobileClientSession
impl Send for MobileClientSession
impl Sync for MobileClientSession
impl Unpin for MobileClientSession
impl UnwindSafe for MobileClientSession
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more