Struct serde_intermediate::schema::SchemaPackage
source · [−]pub struct SchemaPackage {
pub prefer_tree_id: bool,
pub schemas: HashMap<SchemaIdContainer, Schema>,
}
Fields
prefer_tree_id: bool
schemas: HashMap<SchemaIdContainer, Schema>
Implementations
sourceimpl SchemaPackage
impl SchemaPackage
pub fn with_capacity(capacity: usize) -> Self
pub fn prefer_tree_id(self, value: bool) -> Self
pub fn with(
&mut self,
id: impl Into<SchemaIdContainer>,
schema: impl Into<Schema>
) -> &mut Self
Trait Implementations
sourceimpl Clone for SchemaPackage
impl Clone for SchemaPackage
sourcefn clone(&self) -> SchemaPackage
fn clone(&self) -> SchemaPackage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SchemaPackage
impl Debug for SchemaPackage
sourceimpl Default for SchemaPackage
impl Default for SchemaPackage
sourcefn default() -> SchemaPackage
fn default() -> SchemaPackage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SchemaPackage
impl<'de> Deserialize<'de> for SchemaPackage
sourcefn 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
sourceimpl PartialEq<SchemaPackage> for SchemaPackage
impl PartialEq<SchemaPackage> for SchemaPackage
sourcefn eq(&self, other: &SchemaPackage) -> bool
fn eq(&self, other: &SchemaPackage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SchemaPackage) -> bool
fn ne(&self, other: &SchemaPackage) -> bool
This method tests for !=
.
sourceimpl Serialize for SchemaPackage
impl Serialize for SchemaPackage
impl StructuralPartialEq for SchemaPackage
Auto Trait Implementations
impl RefUnwindSafe for SchemaPackage
impl Send for SchemaPackage
impl Sync for SchemaPackage
impl Unpin for SchemaPackage
impl UnwindSafe for SchemaPackage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more