#[non_exhaustive]pub struct WebDeviceSessionLogInfo {
pub user_agent: String,
pub os: String,
pub browser: String,
pub ip_address: Option<IpAddress>,
pub created: Option<DropboxTimestamp>,
pub updated: Option<DropboxTimestamp>,
pub session_info: Option<WebSessionLogInfo>,
}Available on crate feature
dbx_team_log only.Expand description
Information on active web 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.user_agent: StringInformation on the hosting device.
os: StringInformation on the hosting operating system.
browser: StringInformation on the browser used for this web session.
ip_address: Option<IpAddress>The IP address of the last activity from this session.
created: Option<DropboxTimestamp>The time this session was created.
updated: Option<DropboxTimestamp>The time of the last activity from this session.
session_info: Option<WebSessionLogInfo>Web session unique id.
Implementations§
Source§impl WebDeviceSessionLogInfo
impl WebDeviceSessionLogInfo
pub fn new(user_agent: String, os: String, browser: String) -> Self
pub fn with_ip_address(self, value: IpAddress) -> Self
pub fn with_created(self, value: DropboxTimestamp) -> Self
pub fn with_updated(self, value: DropboxTimestamp) -> Self
pub fn with_session_info(self, value: WebSessionLogInfo) -> Self
Trait Implementations§
Source§impl Clone for WebDeviceSessionLogInfo
impl Clone for WebDeviceSessionLogInfo
Source§fn clone(&self) -> WebDeviceSessionLogInfo
fn clone(&self) -> WebDeviceSessionLogInfo
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 WebDeviceSessionLogInfo
impl Debug for WebDeviceSessionLogInfo
Source§impl<'de> Deserialize<'de> for WebDeviceSessionLogInfo
impl<'de> Deserialize<'de> for WebDeviceSessionLogInfo
Source§fn 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
Source§impl From<WebDeviceSessionLogInfo> for DeviceSessionLogInfo
impl From<WebDeviceSessionLogInfo> for DeviceSessionLogInfo
Source§fn from(subtype: WebDeviceSessionLogInfo) -> Self
fn from(subtype: WebDeviceSessionLogInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WebDeviceSessionLogInfo
impl PartialEq for WebDeviceSessionLogInfo
Source§impl Serialize for WebDeviceSessionLogInfo
impl Serialize for WebDeviceSessionLogInfo
impl Eq for WebDeviceSessionLogInfo
impl StructuralPartialEq for WebDeviceSessionLogInfo
Auto Trait Implementations§
impl Freeze for WebDeviceSessionLogInfo
impl RefUnwindSafe for WebDeviceSessionLogInfo
impl Send for WebDeviceSessionLogInfo
impl Sync for WebDeviceSessionLogInfo
impl Unpin for WebDeviceSessionLogInfo
impl UnwindSafe for WebDeviceSessionLogInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.