pub enum Container {
BlueprintBook(BlueprintBook),
Blueprint(Blueprint),
}
Expand description
Container
s are the primary entry point for this library: they contain
either a single blueprint, or a blueprint book.
Variants§
BlueprintBook(BlueprintBook)
Blueprint(Blueprint)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
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
Source§impl From<BlueprintBook> for Container
impl From<BlueprintBook> for Container
Source§fn from(b: BlueprintBook) -> Container
fn from(b: BlueprintBook) -> Container
Converts to this type from the input type.
impl Eq for Container
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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