pub struct DeviceCodeRequestV1 {
pub schema: String,
pub client_id: String,
pub instance_version: String,
pub os: EngineOs,
pub instance_label: Option<String>,
}Expand description
POST /v1/device/code.
Fields§
§schema: String§client_id: StringAlways HIVE_ENGINE_CLIENT_ID.
instance_version: String§os: EngineOs§instance_label: Option<String>The name the user gave this engine (--label), shown on the approval
page and prefilled as its name (Hive task #11). Like instance_version
and os it is the requester’s claim. Absent when the user gave none:
the host-name default goes only into DeviceTokenRequestV1.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceCodeRequestV1
impl Clone for DeviceCodeRequestV1
Source§impl Debug for DeviceCodeRequestV1
impl Debug for DeviceCodeRequestV1
Source§impl<'de> Deserialize<'de> for DeviceCodeRequestV1
impl<'de> Deserialize<'de> for DeviceCodeRequestV1
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
impl Eq for DeviceCodeRequestV1
Source§impl PartialEq for DeviceCodeRequestV1
impl PartialEq for DeviceCodeRequestV1
Source§impl Serialize for DeviceCodeRequestV1
impl Serialize for DeviceCodeRequestV1
impl StructuralPartialEq for DeviceCodeRequestV1
Auto Trait Implementations§
impl Freeze for DeviceCodeRequestV1
impl RefUnwindSafe for DeviceCodeRequestV1
impl Send for DeviceCodeRequestV1
impl Sync for DeviceCodeRequestV1
impl Unpin for DeviceCodeRequestV1
impl UnsafeUnpin for DeviceCodeRequestV1
impl UnwindSafe for DeviceCodeRequestV1
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