pub enum OneOrTag<K: Kind> {
One(Id<K>),
Tag(TagId<K>),
}Expand description
Content of kind K or a tag of it — a recipe ingredient.
Variants§
Trait Implementations§
Source§impl<K: Kind> Schema for OneOrTag<K>
impl<K: Kind> Schema for OneOrTag<K>
impl<K: PartialEq + Kind> StructuralPartialEq for OneOrTag<K>
Auto Trait Implementations§
impl<K> Freeze for OneOrTag<K>
impl<K> RefUnwindSafe for OneOrTag<K>
impl<K> Send for OneOrTag<K>
impl<K> Sync for OneOrTag<K>
impl<K> Unpin for OneOrTag<K>
impl<K> UnsafeUnpin for OneOrTag<K>
impl<K> UnwindSafe for OneOrTag<K>
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