pub enum ModelsItem {
Rest,
Entry(ModelEntry),
}Expand description
One item of a config layer’s models: an entry, or MODELS_SPLICE.
Variants§
Rest
Entry(ModelEntry)
Implementations§
Source§impl ModelsItem
impl ModelsItem
Sourcepub fn entry(&self) -> Option<&ModelEntry>
pub fn entry(&self) -> Option<&ModelEntry>
The entry; None for MODELS_SPLICE.
Trait Implementations§
Source§impl Clone for ModelsItem
impl Clone for ModelsItem
Source§impl Debug for ModelsItem
impl Debug for ModelsItem
Source§impl<'de> Deserialize<'de> for ModelsItem
impl<'de> Deserialize<'de> for ModelsItem
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
Source§impl PartialEq for ModelsItem
impl PartialEq for ModelsItem
Source§impl Serialize for ModelsItem
impl Serialize for ModelsItem
impl StructuralPartialEq for ModelsItem
Auto Trait Implementations§
impl Forget for ModelsItem
impl Freeze for ModelsItem
impl Move for ModelsItem
impl RefUnwindSafe for ModelsItem
impl Send for ModelsItemwhere
RawVecInner: Send,
impl Sync for ModelsItemwhere
RawVecInner: Sync,
impl Unpin for ModelsItem
impl UnsafeUnpin for ModelsItem
impl UnwindSafe for ModelsItemwhere
RawVecInner: UnwindSafe,
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