pub struct LicenseItem {
pub name: Option<String>,
pub title: Option<String>,
pub version: Option<String>,
pub details: Option<Value>,
pub extra: BTreeMap<String, Value>,
}Expand description
One licensed item (name/title/version from the postman-sample
skeleton). details stays Option<serde_json::Value> FOREVER — it
is the point-release-variable deep tree the version-tolerance
directive exists for.
Fields§
§name: Option<String>Module/item name (sample: e.g. "ignition"); Option so drift
never fails the parse (render shows -).
title: Option<String>Display title (sample: "Ignition"); same lenient Option.
version: Option<String>Version string (sample: "8.3.6"); same lenient Option.
details: Option<Value>The deep, point-release-variable remainder — NEVER fully modeled (the roadmap’s version-tolerance directive; the module-doc known-limitation note). Passthrough verbatim.
extra: BTreeMap<String, Value>Unknown keys round-trip.
Trait Implementations§
Source§impl Clone for LicenseItem
impl Clone for LicenseItem
Source§fn clone(&self) -> LicenseItem
fn clone(&self) -> LicenseItem
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 LicenseItem
impl Debug for LicenseItem
Source§impl<'de> Deserialize<'de> for LicenseItem
impl<'de> Deserialize<'de> for LicenseItem
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 LicenseItem
impl PartialEq for LicenseItem
Source§impl Serialize for LicenseItem
impl Serialize for LicenseItem
impl StructuralPartialEq for LicenseItem
Auto Trait Implementations§
impl Freeze for LicenseItem
impl RefUnwindSafe for LicenseItem
impl Send for LicenseItem
impl Sync for LicenseItem
impl Unpin for LicenseItem
impl UnsafeUnpin for LicenseItem
impl UnwindSafe for LicenseItem
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