pub struct DeviceTokenRequestV1 {
pub schema: String,
pub device_code: String,
pub instance_public_key: String,
pub instance_kx_public_key: String,
pub instance_label: String,
pub engine_version: String,
pub os: EngineOs,
}Expand description
POST /v1/device/token: poll until the user approved, then enroll the
instance with its public keys.
Fields§
§schema: String§device_code: String§instance_public_key: StringEd25519 public key (32 bytes, base64) the instance signs assertions with.
instance_kx_public_key: StringX25519 public key (32 bytes, base64) sealed vault keys are wrapped to.
instance_label: StringUser-visible name, e.g. the host name when labels are on.
engine_version: String§os: EngineOsImplementations§
Source§impl DeviceTokenRequestV1
impl DeviceTokenRequestV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for DeviceTokenRequestV1
impl Clone for DeviceTokenRequestV1
Source§impl Debug for DeviceTokenRequestV1
impl Debug for DeviceTokenRequestV1
Source§impl<'de> Deserialize<'de> for DeviceTokenRequestV1
impl<'de> Deserialize<'de> for DeviceTokenRequestV1
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 DeviceTokenRequestV1
Source§impl PartialEq for DeviceTokenRequestV1
impl PartialEq for DeviceTokenRequestV1
Source§impl Serialize for DeviceTokenRequestV1
impl Serialize for DeviceTokenRequestV1
impl StructuralPartialEq for DeviceTokenRequestV1
Auto Trait Implementations§
impl Freeze for DeviceTokenRequestV1
impl RefUnwindSafe for DeviceTokenRequestV1
impl Send for DeviceTokenRequestV1
impl Sync for DeviceTokenRequestV1
impl Unpin for DeviceTokenRequestV1
impl UnsafeUnpin for DeviceTokenRequestV1
impl UnwindSafe for DeviceTokenRequestV1
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