pub struct LicenseHardware {
pub key: Option<String>,
pub items: Vec<LicenseItem>,
pub extra: BTreeMap<String, Value>,
}Expand description
One hardware entry (per license key). Element shapes were NOT
capturable on the fresh rigs — this skeleton is modeled LENIENTLY
(everything defaulted, everything flattened) exactly so a populated
shape parses without a second live capture. Doc comments cite the
lenient-modeling rule, not a capture.
Fields§
§key: Option<String>The license key identifier (postman sample shows a string; kept Option + defaulted — an element whose shape drifts must still parse, the TrialWire recipe).
items: Vec<LicenseItem>Licensed items under this key — lenient modeling (see module
doc): fresh-rig captures answered [], so item shapes ride the
postman-sample skeleton with every field defaulted.
extra: BTreeMap<String, Value>Unknown keys round-trip.
Trait Implementations§
Source§impl Clone for LicenseHardware
impl Clone for LicenseHardware
Source§fn clone(&self) -> LicenseHardware
fn clone(&self) -> LicenseHardware
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 LicenseHardware
impl Debug for LicenseHardware
Source§impl<'de> Deserialize<'de> for LicenseHardware
impl<'de> Deserialize<'de> for LicenseHardware
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
Source§impl PartialEq for LicenseHardware
impl PartialEq for LicenseHardware
Source§impl Serialize for LicenseHardware
impl Serialize for LicenseHardware
impl StructuralPartialEq for LicenseHardware
Auto Trait Implementations§
impl Freeze for LicenseHardware
impl RefUnwindSafe for LicenseHardware
impl Send for LicenseHardware
impl Sync for LicenseHardware
impl Unpin for LicenseHardware
impl UnsafeUnpin for LicenseHardware
impl UnwindSafe for LicenseHardware
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