pub struct ProvisionReqV2 {
pub project_id: u32,
pub region_id: u32,
pub registry_id: u32,
pub serial_number: String,
pub access_token: String,
pub public_key: String,
pub asset_type_id: i32,
}
Expand description
Provision Scheme. More info: https://dimonoff.atlassian.net/wiki/spaces/F2/pages/306166693917/Provisioning#Provisioning-API-V2.
Fields§
§project_id: u32
Project id on the Hub.
region_id: u32
Region id on the Hub.
registry_id: u32
Registry id on the Hub.
serial_number: String
Serial number of the end device to provision.
access_token: String
Provisioning token obtained from a Token file.
public_key: String
The RSA public key that will be used to validate the JWT token made by the device.
asset_type_id: i32
Type of the device. The default is DEFAULT_ASSET_TYPE_ID
.
Trait Implementations§
Source§impl Debug for ProvisionReqV2
impl Debug for ProvisionReqV2
Auto Trait Implementations§
impl Freeze for ProvisionReqV2
impl RefUnwindSafe for ProvisionReqV2
impl Send for ProvisionReqV2
impl Sync for ProvisionReqV2
impl Unpin for ProvisionReqV2
impl UnwindSafe for ProvisionReqV2
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