pub struct DeviceBoundSessionWithUsage<'a> { /* private fields */ }Expand description
How a device bound session was used during a request.
Implementations§
Source§impl<'a> DeviceBoundSessionWithUsage<'a>
impl<'a> DeviceBoundSessionWithUsage<'a>
Sourcepub fn builder(
session_key: DeviceBoundSessionKey<'a>,
usage: impl Into<Cow<'a, str>>,
) -> DeviceBoundSessionWithUsageBuilder<'a>
pub fn builder( session_key: DeviceBoundSessionKey<'a>, usage: impl Into<Cow<'a, str>>, ) -> DeviceBoundSessionWithUsageBuilder<'a>
Creates a builder for this type with the required parameters:
session_key: The key for the session.usage: How the session was used (or not used).
Sourcepub fn session_key(&self) -> &DeviceBoundSessionKey<'a>
pub fn session_key(&self) -> &DeviceBoundSessionKey<'a>
The key for the session.
Trait Implementations§
Source§impl<'a> Clone for DeviceBoundSessionWithUsage<'a>
impl<'a> Clone for DeviceBoundSessionWithUsage<'a>
Source§fn clone(&self) -> DeviceBoundSessionWithUsage<'a>
fn clone(&self) -> DeviceBoundSessionWithUsage<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DeviceBoundSessionWithUsage<'a>
impl<'a> Debug for DeviceBoundSessionWithUsage<'a>
Source§impl<'a> Default for DeviceBoundSessionWithUsage<'a>
impl<'a> Default for DeviceBoundSessionWithUsage<'a>
Source§fn default() -> DeviceBoundSessionWithUsage<'a>
fn default() -> DeviceBoundSessionWithUsage<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DeviceBoundSessionWithUsage<'a>
impl<'de, 'a> Deserialize<'de> for DeviceBoundSessionWithUsage<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for DeviceBoundSessionWithUsage<'a>
impl<'a> RefUnwindSafe for DeviceBoundSessionWithUsage<'a>
impl<'a> Send for DeviceBoundSessionWithUsage<'a>
impl<'a> Sync for DeviceBoundSessionWithUsage<'a>
impl<'a> Unpin for DeviceBoundSessionWithUsage<'a>
impl<'a> UnsafeUnpin for DeviceBoundSessionWithUsage<'a>
impl<'a> UnwindSafe for DeviceBoundSessionWithUsage<'a>
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