pub struct GenerationCatalog {
pub schema_version: u8,
pub generated_at: String,
pub models: Vec<GenerationModel>,
}Fields§
§schema_version: u8§generated_at: String§models: Vec<GenerationModel>Implementations§
Source§impl GenerationCatalog
impl GenerationCatalog
pub fn parse(raw: &str) -> Result<Self, ValidationError>
pub fn bundled() -> Result<Self, ValidationError>
Sourcepub fn resolve(&self, query: &str) -> Result<&GenerationModel, ValidationError>
pub fn resolve(&self, query: &str) -> Result<&GenerationModel, ValidationError>
Resolves image/video to that kind’s default model, otherwise an exact id.
Trait Implementations§
Source§impl Clone for GenerationCatalog
impl Clone for GenerationCatalog
Source§impl Debug for GenerationCatalog
impl Debug for GenerationCatalog
Source§impl<'de> Deserialize<'de> for GenerationCatalog
impl<'de> Deserialize<'de> for GenerationCatalog
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
impl Eq for GenerationCatalog
Source§impl PartialEq for GenerationCatalog
impl PartialEq for GenerationCatalog
Source§impl Serialize for GenerationCatalog
impl Serialize for GenerationCatalog
impl StructuralPartialEq for GenerationCatalog
Auto Trait Implementations§
impl Freeze for GenerationCatalog
impl RefUnwindSafe for GenerationCatalog
impl Send for GenerationCatalog
impl Sync for GenerationCatalog
impl Unpin for GenerationCatalog
impl UnsafeUnpin for GenerationCatalog
impl UnwindSafe for GenerationCatalog
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