#[non_exhaustive]pub struct BeginResponse {
pub channel_binding_required: bool,
pub nonce: String,
}Expand description
A freshly-issued enrollment challenge to sign and return.
JSON schema
{
"description": "A freshly-issued enrollment challenge to sign and return.",
"type": "object",
"required": [
"channel_binding_required",
"nonce"
],
"properties": {
"channel_binding_required": {
"description": "True if the server requires channel-binding data (the connection's\nTLS exported keying material) to be folded into the signed\ntranscript. Only relevant when enrolling over mTLS; it never\napplies on a transport without TLS channel binding.",
"type": "boolean"
},
"nonce": {
"description": "Base64-standard-encoded 32-byte challenge nonce. Sign it, together\nwith the machine ID, device public key, and channel-binding data if\nrequired, and submit the signature when completing enrollment.",
"type": "string"
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel_binding_required: boolTrue if the server requires channel-binding data (the connection’s TLS exported keying material) to be folded into the signed transcript. Only relevant when enrolling over mTLS; it never applies on a transport without TLS channel binding.
nonce: StringBase64-standard-encoded 32-byte challenge nonce. Sign it, together with the machine ID, device public key, and channel-binding data if required, and submit the signature when completing enrollment.
Implementations§
Source§impl BeginResponse
impl BeginResponse
Sourcepub fn builder() -> BeginResponseBuilder
pub fn builder() -> BeginResponseBuilder
Create an instance of BeginResponse using the builder syntax
Trait Implementations§
Source§impl Clone for BeginResponse
impl Clone for BeginResponse
Source§fn clone(&self) -> BeginResponse
fn clone(&self) -> BeginResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeginResponse
impl Debug for BeginResponse
Source§impl<'de> Deserialize<'de> for BeginResponse
impl<'de> Deserialize<'de> for BeginResponse
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
Auto Trait Implementations§
impl Freeze for BeginResponse
impl RefUnwindSafe for BeginResponse
impl Send for BeginResponse
impl Sync for BeginResponse
impl Unpin for BeginResponse
impl UnsafeUnpin for BeginResponse
impl UnwindSafe for BeginResponse
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