pub struct DevicesCapability {
pub enroll_path: String,
pub code_ttl_seconds: u64,
pub poll_interval_seconds: u64,
pub signature_window_seconds: u64,
}Expand description
The devices capability in the discovery document: present when the
server enrols devices and accepts their signatures.
Fields§
§enroll_path: StringWhere to start enrolling: ENROLL_PATH.
code_ttl_seconds: u64How long a user code lives: CODE_TTL_SECONDS.
poll_interval_seconds: u64How often to poll: POLL_INTERVAL_SECONDS.
signature_window_seconds: u64How far a signature’s created may be behind the server’s clock:
signature::WINDOW_SECONDS. Ahead of it, it may be only
signature::MAX_AHEAD_SECONDS.
Trait Implementations§
Source§impl Clone for DevicesCapability
impl Clone for DevicesCapability
Source§impl Debug for DevicesCapability
impl Debug for DevicesCapability
Source§impl Default for DevicesCapability
impl Default for DevicesCapability
Source§impl<'de> Deserialize<'de> for DevicesCapability
impl<'de> Deserialize<'de> for DevicesCapability
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
impl Eq for DevicesCapability
Source§impl PartialEq for DevicesCapability
impl PartialEq for DevicesCapability
Source§impl Serialize for DevicesCapability
impl Serialize for DevicesCapability
impl StructuralPartialEq for DevicesCapability
Auto Trait Implementations§
impl Freeze for DevicesCapability
impl RefUnwindSafe for DevicesCapability
impl Send for DevicesCapability
impl Sync for DevicesCapability
impl Unpin for DevicesCapability
impl UnsafeUnpin for DevicesCapability
impl UnwindSafe for DevicesCapability
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.