pub struct DeviceIdentity {
pub serial: Option<String>,
pub display_name: Option<String>,
pub inventory_no: Option<String>,
pub stream: Option<String>,
pub branding: Option<String>,
pub initial_password_scheme: Option<String>,
pub initial_password_changed: Option<bool>,
}Expand description
Device identity sent with every heartbeat. All fields are optional and sent only when set. serial/display_name/inventory_no/stream and the password scheme are machine-wide (fleet config file); branding is software-specific. The server only accepts a serial that is registered or assigned.
Fields§
§serial: Option<String>§display_name: Option<String>§inventory_no: Option<String>§stream: Option<String>§branding: Option<String>§initial_password_scheme: Option<String>§initial_password_changed: Option<bool>Implementations§
Source§impl DeviceIdentity
impl DeviceIdentity
Sourcepub fn from_fleet_json(fm: &Value) -> Self
pub fn from_fleet_json(fm: &Value) -> Self
Machine-wide identity from the fleetmanagement section of the config.
The serial preferably comes from a file created root-owned at first
provisioning and mounted read-only: env FLEET_SERIAL_FILE > key
serial_file > key serial. A configured file wins even when
unreadable (then no serial is sent).
Trait Implementations§
Source§impl Clone for DeviceIdentity
impl Clone for DeviceIdentity
Source§fn clone(&self) -> DeviceIdentity
fn clone(&self) -> DeviceIdentity
Returns a copy of the value. Read more
1.0.0 · 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 DeviceIdentity
impl Debug for DeviceIdentity
Source§impl Default for DeviceIdentity
impl Default for DeviceIdentity
Source§fn default() -> DeviceIdentity
fn default() -> DeviceIdentity
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeviceIdentity
impl PartialEq for DeviceIdentity
impl StructuralPartialEq for DeviceIdentity
Auto Trait Implementations§
impl Freeze for DeviceIdentity
impl RefUnwindSafe for DeviceIdentity
impl Send for DeviceIdentity
impl Sync for DeviceIdentity
impl Unpin for DeviceIdentity
impl UnwindSafe for DeviceIdentity
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