Struct dropbox_sdk::team::DeviceSession
source · [−]#[non_exhaustive]pub struct DeviceSession {
pub session_id: String,
pub ip_address: Option<String>,
pub country: Option<String>,
pub created: Option<DropboxTimestamp>,
pub updated: Option<DropboxTimestamp>,
}Available on crate feature
dbx_team only.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.
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 DeviceSession
impl DeviceSession
pub fn new(session_id: String) -> 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 DeviceSession
impl Clone for DeviceSession
sourcefn clone(&self) -> DeviceSession
fn clone(&self) -> DeviceSession
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 DeviceSession
impl Debug for DeviceSession
sourceimpl<'de> Deserialize<'de> for DeviceSession
impl<'de> Deserialize<'de> for DeviceSession
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<DeviceSession> for DeviceSession
impl PartialEq<DeviceSession> for DeviceSession
sourcefn eq(&self, other: &DeviceSession) -> bool
fn eq(&self, other: &DeviceSession) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DeviceSession) -> bool
fn ne(&self, other: &DeviceSession) -> bool
This method tests for !=.
sourceimpl Serialize for DeviceSession
impl Serialize for DeviceSession
impl Eq for DeviceSession
impl StructuralEq for DeviceSession
impl StructuralPartialEq for DeviceSession
Auto Trait Implementations
impl RefUnwindSafe for DeviceSession
impl Send for DeviceSession
impl Sync for DeviceSession
impl Unpin for DeviceSession
impl UnwindSafe for DeviceSession
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