pub struct CatalogModel {
pub name: String,
pub file: String,
pub url: String,
pub size: String,
pub description: String,
pub draft: Option<String>,
pub extra_files: Vec<CatalogAsset>,
pub mmproj: Option<CatalogAsset>,
}Fields§
§name: String§file: String§url: String§size: String§description: String§draft: Option<String>§extra_files: Vec<CatalogAsset>§mmproj: Option<CatalogAsset>Implementations§
Source§impl CatalogModel
impl CatalogModel
pub fn source_repo(&self) -> Option<&str>
pub fn source_revision(&self) -> Option<&str>
pub fn source_file(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for CatalogModel
impl Clone for CatalogModel
Source§fn clone(&self) -> CatalogModel
fn clone(&self) -> CatalogModel
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 moreAuto Trait Implementations§
impl Freeze for CatalogModel
impl RefUnwindSafe for CatalogModel
impl Send for CatalogModel
impl Sync for CatalogModel
impl Unpin for CatalogModel
impl UnsafeUnpin for CatalogModel
impl UnwindSafe for CatalogModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more