pub struct InventoryEntry {
pub name: String,
pub tags: Vec<String>,
pub in_scope_since: Option<NaiveDate>,
pub retired_on: Option<NaiveDate>,
pub aliases: Vec<String>,
pub excludes: Vec<String>,
pub extras: BTreeMap<String, Value>,
}Fields§
§name: String§in_scope_since: Option<NaiveDate>§retired_on: Option<NaiveDate>§aliases: Vec<String>§excludes: Vec<String>Skill names this entry opts out of, even if the tag filter matches.
extras: BTreeMap<String, Value>Anything else from the YAML — url, stack, provider, profile,
owner, address, etc. — surfaced to skills as-is.
Implementations§
Source§impl InventoryEntry
impl InventoryEntry
Sourcepub fn is_active_on(&self, date: NaiveDate) -> bool
pub fn is_active_on(&self, date: NaiveDate) -> bool
Active on date according to lifecycle dates. in_scope_since is
inclusive; retired_on is exclusive (per storage.md).
Trait Implementations§
Source§impl Clone for InventoryEntry
impl Clone for InventoryEntry
Source§fn clone(&self) -> InventoryEntry
fn clone(&self) -> InventoryEntry
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 InventoryEntry
impl Debug for InventoryEntry
Source§impl<'de> Deserialize<'de> for InventoryEntry
impl<'de> Deserialize<'de> for InventoryEntry
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 InventoryEntry
impl RefUnwindSafe for InventoryEntry
impl Send for InventoryEntry
impl Sync for InventoryEntry
impl Unpin for InventoryEntry
impl UnsafeUnpin for InventoryEntry
impl UnwindSafe for InventoryEntry
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