pub struct LicenseStatusWire {
pub cloud: Vec<Value>,
pub certificate: Vec<Value>,
pub hardware: Vec<LicenseHardware>,
pub embedded: Vec<Value>,
pub leased: Vec<Value>,
pub effective: LicenseEffective,
pub leased_unactivate_timeout_ms: Option<i64>,
pub busy: bool,
pub extra: BTreeMap<String, Value>,
}Expand description
GET /data/api/v1/licenses — the license inventory. Live-captured
200 on BOTH rigs (09-LIVE-CAPTURES §1); the two bodies differ in
VALUES only, never shape.
Fields§
§cloud: Vec<Value>Cloud-license entries — [] on both fresh-rig captures (no
activations exist); element shape NOT capture-proven → elements
ride as opaque values (the known-limitation passthrough).
certificate: Vec<Value>Certificate-license entries — [] on both captures; passthrough
elements for the same reason.
hardware: Vec<LicenseHardware>Per-key hardware activations — [] on both captures; the
key+items skeleton below is modeled leniently (all-defaulted)
so a populated shape can never fail the parse.
embedded: Vec<Value>Embedded-license entries — [] on both captures; passthrough
elements.
leased: Vec<Value>Leased-license entries — [] on both captures; passthrough
elements (the Postman sample’s deep lease objects are
doc-generated placeholders, NOT captures — never modeled deeper).
effective: LicenseEffectiveThe effective-license stamp — present on both captures
({"lastUpdated": 1788748551614i64}); default so an absent key
on a future shape still parses.
leased_unactivate_timeout_ms: Option<i64>Activation-unactivate grace window — 7500 on both captures;
name says MILLISECONDS (capital MS suffix), the doc comment is
the capture citation. Option because only two point releases have
ever been seen.
busy: boolServer mid-mutation flag — false on both captures (a read can
race a license write; true tells the caller the inventory is
in flux).
extra: BTreeMap<String, Value>Unknown keys round-trip (passthrough-shaped --json; the
version-tolerance directive — point releases may add keys).
Implementations§
Source§impl LicenseStatusWire
impl LicenseStatusWire
Sourcepub fn item_count(&self) -> usize
pub fn item_count(&self) -> usize
The morning-check count: total licensed ITEMS across every
hardware key (0 on a fresh trial rig — both captures answered
empty arrays).
Trait Implementations§
Source§impl Clone for LicenseStatusWire
impl Clone for LicenseStatusWire
Source§fn clone(&self) -> LicenseStatusWire
fn clone(&self) -> LicenseStatusWire
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more