pub struct Bundle<T> {
pub id: Id,
pub spec_version: String,
pub objects: Vec<T>,
}Fields§
§id: Id§spec_version: String§objects: Vec<T>Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Bundle<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Bundle<T>where
T: Deserialize<'de>,
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<Bundle<Declaration>> for Collection
impl From<Bundle<Declaration>> for Collection
Source§fn from(bundle: Bundle<Declaration>) -> Self
fn from(bundle: Bundle<Declaration>) -> Self
Converts to this type from the input type.
Source§impl From<Bundle<Declaration>> for CollectionBuilder
impl From<Bundle<Declaration>> for CollectionBuilder
Source§fn from(bundle: Bundle<Declaration>) -> Self
fn from(bundle: Bundle<Declaration>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Bundle<T>
impl<T> RefUnwindSafe for Bundle<T>where
T: RefUnwindSafe,
impl<T> Send for Bundle<T>where
T: Send,
impl<T> Sync for Bundle<T>where
T: Sync,
impl<T> Unpin for Bundle<T>where
T: Unpin,
impl<T> UnwindSafe for Bundle<T>where
T: 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