pub struct EnrollmentV1 {
pub schema: String,
pub instance_id: String,
pub org: OrgRefV1,
pub lease: CloudLeaseEnvelopeV1,
pub keys: EnrollmentKeySet,
pub org_salt_id: String,
pub web_url: Option<String>,
}Expand description
Successful POST /v1/device/token.
Fields§
§schema: String§instance_id: String§org: OrgRefV1§lease: CloudLeaseEnvelopeV1§keys: EnrollmentKeySetSigned by the Cloud root key; verified before the lease. v1 for an engine below Cloud-Protocol 2.1, v3 from 2.1.
org_salt_id: StringId of the org salt the engine fetches with GET /v1/org/salt.
web_url: Option<String>1.3: origin of the LeanCTX Cloud web app (its “Open” link); may equal the API origin.
Implementations§
Source§impl EnrollmentV1
impl EnrollmentV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Structural checks; signature checks are the engine’s
(keys against the root key, then lease against keys).
Trait Implementations§
Source§impl Clone for EnrollmentV1
impl Clone for EnrollmentV1
Source§impl Debug for EnrollmentV1
impl Debug for EnrollmentV1
Source§impl<'de> Deserialize<'de> for EnrollmentV1
impl<'de> Deserialize<'de> for EnrollmentV1
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
Source§impl PartialEq for EnrollmentV1
impl PartialEq for EnrollmentV1
Source§impl Serialize for EnrollmentV1
impl Serialize for EnrollmentV1
impl StructuralPartialEq for EnrollmentV1
Auto Trait Implementations§
impl Forget for EnrollmentV1
impl Freeze for EnrollmentV1
impl Move for EnrollmentV1
impl RefUnwindSafe for EnrollmentV1
impl Send for EnrollmentV1
impl Sync for EnrollmentV1
impl Unpin for EnrollmentV1
impl UnsafeUnpin for EnrollmentV1
impl UnwindSafe for EnrollmentV1
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