Struct serde_intermediate::schema::SchemaTypeArrayOrSlice
source · pub struct SchemaTypeArrayOrSlice {
pub type_instance: SchemaTypeInstance,
pub count: usize,
}
Fields§
§type_instance: SchemaTypeInstance
§count: usize
Implementations§
source§impl SchemaTypeArrayOrSlice
impl SchemaTypeArrayOrSlice
pub fn new(type_instance: impl Into<SchemaTypeInstance>, count: usize) -> Self
Trait Implementations§
source§impl Clone for SchemaTypeArrayOrSlice
impl Clone for SchemaTypeArrayOrSlice
source§fn clone(&self) -> SchemaTypeArrayOrSlice
fn clone(&self) -> SchemaTypeArrayOrSlice
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 SchemaTypeArrayOrSlice
impl Debug for SchemaTypeArrayOrSlice
source§impl<'de> Deserialize<'de> for SchemaTypeArrayOrSlice
impl<'de> Deserialize<'de> for SchemaTypeArrayOrSlice
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<TI> From<(TI, usize)> for SchemaTypeArrayOrSlicewhere
TI: Into<SchemaTypeInstance>,
impl<TI> From<(TI, usize)> for SchemaTypeArrayOrSlicewhere TI: Into<SchemaTypeInstance>,
source§impl PartialEq<SchemaTypeArrayOrSlice> for SchemaTypeArrayOrSlice
impl PartialEq<SchemaTypeArrayOrSlice> for SchemaTypeArrayOrSlice
source§fn eq(&self, other: &SchemaTypeArrayOrSlice) -> bool
fn eq(&self, other: &SchemaTypeArrayOrSlice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SchemaTypeArrayOrSlice
impl Serialize for SchemaTypeArrayOrSlice
impl StructuralPartialEq for SchemaTypeArrayOrSlice
Auto Trait Implementations§
impl RefUnwindSafe for SchemaTypeArrayOrSlice
impl Send for SchemaTypeArrayOrSlice
impl Sync for SchemaTypeArrayOrSlice
impl Unpin for SchemaTypeArrayOrSlice
impl UnwindSafe for SchemaTypeArrayOrSlice
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