#[non_exhaustive]pub struct SelfResponse {
pub device_id: Uuid,
pub server_id: Uuid,
}Expand description
The calling device’s own identity, as assigned at enrollment.
JSON schema
{
"description": "The calling device's own identity, as assigned at enrollment.",
"type": "object",
"required": [
"device_id",
"server_id"
],
"properties": {
"device_id": {
"description": "The calling device's own identity.",
"type": "string",
"format": "uuid"
},
"server_id": {
"description": "The box the calling device is enrolled as. This is the id a device\npushes status against, and the one `GET /machines/self` calls\n`machine_id`.",
"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 calling device’s own identity.
server_id: UuidThe box the calling device is enrolled as. This is the id a device
pushes status against, and the one GET /machines/self calls
machine_id.
Implementations§
Source§impl SelfResponse
impl SelfResponse
Sourcepub fn builder() -> SelfResponseBuilder
pub fn builder() -> SelfResponseBuilder
Create an instance of SelfResponse using the builder syntax
Trait Implementations§
Source§impl Clone for SelfResponse
impl Clone for SelfResponse
Source§fn clone(&self) -> SelfResponse
fn clone(&self) -> SelfResponse
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 SelfResponse
impl Debug for SelfResponse
Source§impl<'de> Deserialize<'de> for SelfResponse
impl<'de> Deserialize<'de> for SelfResponse
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 SelfResponse
impl RefUnwindSafe for SelfResponse
impl Send for SelfResponse
impl Sync for SelfResponse
impl Unpin for SelfResponse
impl UnsafeUnpin for SelfResponse
impl UnwindSafe for SelfResponse
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