pub struct Catalog {
pub schema_version: u8,
pub generated_at: String,
pub models: Vec<CatalogModel>,
}Fields§
§schema_version: u8§generated_at: String§models: Vec<CatalogModel>Implementations§
Source§impl Catalog
impl Catalog
Sourcepub fn retain_recent(
&mut self,
today: &str,
months: u8,
) -> Result<(), ValidationError>
pub fn retain_recent( &mut self, today: &str, months: u8, ) -> Result<(), ValidationError>
Keeps entries whose recency date (released, else added) is within months of today.
pub fn parse(raw: &str) -> Result<Self, ValidationError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Catalog
impl<'de> Deserialize<'de> for Catalog
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 Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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