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§
source§impl 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§
source§impl Clone for SchemaPackage
impl Clone for SchemaPackage
source§fn clone(&self) -> SchemaPackage
fn clone(&self) -> SchemaPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemaPackage
impl Debug for SchemaPackage
source§impl Default for SchemaPackage
impl Default for SchemaPackage
source§fn default() -> SchemaPackage
fn default() -> SchemaPackage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchemaPackage
impl<'de> Deserialize<'de> for SchemaPackage
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 PartialEq<SchemaPackage> for SchemaPackage
impl PartialEq<SchemaPackage> for SchemaPackage
source§fn 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 ==
.source§impl 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§
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