pub struct DeviceExtensionResult {
pub device_did: DeviceDID,
pub new_expires_at: DateTime<Utc>,
}Expand description
Outcome of a successful device authorization extension.
Usage:
ⓘ
let result: DeviceExtensionResult = extend_device_authorization(config, provider)?;
println!("Extended {} until {}", result.device_did, result.new_expires_at.date_naive());Fields§
§device_did: DeviceDIDThe DID of the device whose authorization was extended.
new_expires_at: DateTime<Utc>The new expiration timestamp for the device authorization.
Trait Implementations§
Source§impl Clone for DeviceExtensionResult
impl Clone for DeviceExtensionResult
Source§fn clone(&self) -> DeviceExtensionResult
fn clone(&self) -> DeviceExtensionResult
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 moreAuto Trait Implementations§
impl Freeze for DeviceExtensionResult
impl RefUnwindSafe for DeviceExtensionResult
impl Send for DeviceExtensionResult
impl Sync for DeviceExtensionResult
impl Unpin for DeviceExtensionResult
impl UnsafeUnpin for DeviceExtensionResult
impl UnwindSafe for DeviceExtensionResult
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