pub struct DeviceLinkConfig {
pub identity_key_alias: KeyAlias,
pub device_key_alias: Option<KeyAlias>,
pub device_did: Option<String>,
pub capabilities: Vec<Capability>,
pub expires_in_days: Option<u32>,
pub note: Option<String>,
pub payload: Option<Value>,
}Expand description
Configuration for linking a device to an existing identity.
Args:
identity_key_alias: Alias of the identity key in the keychain.
Usage:
ⓘ
let config = DeviceLinkConfig {
identity_key_alias: "my-identity".into(),
device_key_alias: Some("macbook-pro".into()),
device_did: None,
capabilities: vec!["sign-commit".into()],
expires_in_days: Some(365),
note: Some("Work laptop".into()),
payload: None,
};Fields§
§identity_key_alias: KeyAliasAlias of the identity key in the keychain.
device_key_alias: Option<KeyAlias>Optional alias for the device key (defaults to identity alias).
device_did: Option<String>Optional pre-existing device DID (not yet supported).
capabilities: Vec<Capability>Capabilities to grant to the linked device.
expires_in_days: Option<u32>Optional expiration period in days.
note: Option<String>Optional human-readable note for the attestation.
payload: Option<Value>Optional JSON payload to embed in the attestation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceLinkConfig
impl RefUnwindSafe for DeviceLinkConfig
impl Send for DeviceLinkConfig
impl Sync for DeviceLinkConfig
impl Unpin for DeviceLinkConfig
impl UnsafeUnpin for DeviceLinkConfig
impl UnwindSafe for DeviceLinkConfig
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