#[non_exhaustive]pub struct CompleteResponse {
pub device_id: Uuid,
pub server_id: Uuid,
}Expand description
Result of a successful enrollment.
JSON schema
{
"description": "Result of a successful enrollment.",
"type": "object",
"required": [
"device_id",
"server_id"
],
"properties": {
"device_id": {
"description": "The device identity created or reused for this enrollment. The\ndevice authenticates as this ID from now on.",
"type": "string",
"format": "uuid"
},
"server_id": {
"description": "The machine the device is now enrolled against.",
"type": "string",
"format": "uuid"
}
}
}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.device_id: UuidThe device identity created or reused for this enrollment. The device authenticates as this ID from now on.
server_id: UuidThe machine the device is now enrolled against.
Implementations§
Source§impl CompleteResponse
impl CompleteResponse
Sourcepub fn builder() -> CompleteResponseBuilder
pub fn builder() -> CompleteResponseBuilder
Create an instance of CompleteResponse using the builder syntax
Trait Implementations§
Source§impl Clone for CompleteResponse
impl Clone for CompleteResponse
Source§fn clone(&self) -> CompleteResponse
fn clone(&self) -> CompleteResponse
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 CompleteResponse
impl Debug for CompleteResponse
Source§impl<'de> Deserialize<'de> for CompleteResponse
impl<'de> Deserialize<'de> for CompleteResponse
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 CompleteResponse
impl RefUnwindSafe for CompleteResponse
impl Send for CompleteResponse
impl Sync for CompleteResponse
impl Unpin for CompleteResponse
impl UnsafeUnpin for CompleteResponse
impl UnwindSafe for CompleteResponse
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