Struct dropbox_sdk::team::DesktopClientSession
source · [−]#[non_exhaustive]pub struct DesktopClientSession {
pub session_id: String,
pub host_name: String,
pub client_type: DesktopPlatform,
pub client_version: String,
pub platform: String,
pub is_delete_on_unlink_supported: bool,
pub ip_address: Option<String>,
pub country: Option<String>,
pub created: Option<DropboxTimestamp>,
pub updated: Option<DropboxTimestamp>,
}dbx_team only.Expand description
Information about linked Dropbox desktop client sessions.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe session id.
host_name: StringName of the hosting desktop.
client_type: DesktopPlatformThe Dropbox desktop client type.
client_version: StringThe Dropbox client version.
platform: StringInformation on the hosting platform.
is_delete_on_unlink_supported: boolWhether it’s possible to delete all of the account files upon unlinking.
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.
Implementations
sourceimpl DesktopClientSession
impl DesktopClientSession
pub fn new(
session_id: String,
host_name: String,
client_type: DesktopPlatform,
client_version: String,
platform: String,
is_delete_on_unlink_supported: bool
) -> 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
Trait Implementations
sourceimpl Clone for DesktopClientSession
impl Clone for DesktopClientSession
sourcefn clone(&self) -> DesktopClientSession
fn clone(&self) -> DesktopClientSession
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 DesktopClientSession
impl Debug for DesktopClientSession
sourceimpl<'de> Deserialize<'de> for DesktopClientSession
impl<'de> Deserialize<'de> for DesktopClientSession
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<DesktopClientSession> for DesktopClientSession
impl PartialEq<DesktopClientSession> for DesktopClientSession
sourcefn eq(&self, other: &DesktopClientSession) -> bool
fn eq(&self, other: &DesktopClientSession) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DesktopClientSession) -> bool
fn ne(&self, other: &DesktopClientSession) -> bool
This method tests for !=.
sourceimpl Serialize for DesktopClientSession
impl Serialize for DesktopClientSession
impl Eq for DesktopClientSession
impl StructuralEq for DesktopClientSession
impl StructuralPartialEq for DesktopClientSession
Auto Trait Implementations
impl RefUnwindSafe for DesktopClientSession
impl Send for DesktopClientSession
impl Sync for DesktopClientSession
impl Unpin for DesktopClientSession
impl UnwindSafe for DesktopClientSession
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