pub struct HardwareBinding {
pub mac_addresses: Vec<String>,
pub disk_ids: Vec<String>,
pub host_names: Vec<String>,
pub custom_ids: Vec<String>,
}Expand description
Hardware binding information for license verification
Specifies which hardware identifiers a license is bound to. Empty vectors mean no binding is required for that hardware type.
§Example
use licverify::HardwareBinding;
let binding = HardwareBinding {
mac_addresses: vec!["aa:bb:cc:dd:ee:ff".to_string()],
disk_ids: vec!["DISK123".to_string()],
host_names: vec!["workstation-01".to_string()],
custom_ids: vec![],
};Fields§
§mac_addresses: Vec<String>§disk_ids: Vec<String>§host_names: Vec<String>§custom_ids: Vec<String>Trait Implementations§
Source§impl Clone for HardwareBinding
impl Clone for HardwareBinding
Source§fn clone(&self) -> HardwareBinding
fn clone(&self) -> HardwareBinding
Returns a duplicate 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 HardwareBinding
impl Debug for HardwareBinding
Source§impl Default for HardwareBinding
impl Default for HardwareBinding
Source§fn default() -> HardwareBinding
fn default() -> HardwareBinding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HardwareBinding
impl<'de> Deserialize<'de> for HardwareBinding
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 HardwareBinding
impl RefUnwindSafe for HardwareBinding
impl Send for HardwareBinding
impl Sync for HardwareBinding
impl Unpin for HardwareBinding
impl UnwindSafe for HardwareBinding
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