pub struct DeviceRegisterBody {
pub consumer_kind: Value,
pub display_name: String,
pub platform: Option<String>,
pub hpke_public_key: Option<String>,
}Expand description
device/register/0.1 — claim a DeviceBinding on the caller’s ACL entry.
Fields§
§consumer_kind: ValueThe tagged ConsumerKind union ({kind: "service", serviceKind: …}).
Stays a Value because the caller supplies it as one and the union has
no Rust model here yet; modelling it is an API change, not a fold.
display_name: String§platform: Option<String>§hpke_public_key: Option<String>Trait Implementations§
Source§impl Clone for DeviceRegisterBody
impl Clone for DeviceRegisterBody
Source§fn clone(&self) -> DeviceRegisterBody
fn clone(&self) -> DeviceRegisterBody
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 DeviceRegisterBody
impl Debug for DeviceRegisterBody
Source§impl<'de> Deserialize<'de> for DeviceRegisterBody
impl<'de> Deserialize<'de> for DeviceRegisterBody
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 DeviceRegisterBody
impl RefUnwindSafe for DeviceRegisterBody
impl Send for DeviceRegisterBody
impl Sync for DeviceRegisterBody
impl Unpin for DeviceRegisterBody
impl UnsafeUnpin for DeviceRegisterBody
impl UnwindSafe for DeviceRegisterBody
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