#[non_exhaustive]pub enum ModelCatalogSource {
ProviderCatalog,
FakeCatalog,
UnresolvedCatalog,
BundledCatalog,
ConfigCatalog,
Unknown(String),
}Expand description
Where a model catalog came from. Open: an unrecognized value is an unknown source, not an error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ProviderCatalog
A live provider catalog.
FakeCatalog
A test fake.
UnresolvedCatalog
A production host whose catalog has not been resolved yet.
BundledCatalog
The compiled-in fallback.
ConfigCatalog
A user-configured fallback.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ModelCatalogSource
impl Clone for ModelCatalogSource
Source§impl Debug for ModelCatalogSource
impl Debug for ModelCatalogSource
Source§impl<'de> Deserialize<'de> for ModelCatalogSource
impl<'de> Deserialize<'de> for ModelCatalogSource
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelCatalogSource
Source§impl PartialEq for ModelCatalogSource
impl PartialEq for ModelCatalogSource
Source§impl Serialize for ModelCatalogSource
impl Serialize for ModelCatalogSource
impl StructuralPartialEq for ModelCatalogSource
Auto Trait Implementations§
impl Forget for ModelCatalogSource
impl Freeze for ModelCatalogSource
impl Move for ModelCatalogSource
impl RefUnwindSafe for ModelCatalogSource
impl Send for ModelCatalogSource
impl Sync for ModelCatalogSource
impl Unpin for ModelCatalogSource
impl UnsafeUnpin for ModelCatalogSource
impl UnwindSafe for ModelCatalogSource
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