Struct serde_intermediate::schema::SchemaTypeInstance
source · [−]pub struct SchemaTypeInstance {
pub id: SchemaIdContainer,
pub description: String,
}
Fields
id: SchemaIdContainer
description: String
Implementations
sourceimpl SchemaTypeInstance
impl SchemaTypeInstance
pub fn new(id: impl Into<SchemaIdContainer>) -> Self
pub fn description(self, content: impl ToString) -> Self
Trait Implementations
sourceimpl Clone for SchemaTypeInstance
impl Clone for SchemaTypeInstance
sourcefn clone(&self) -> SchemaTypeInstance
fn clone(&self) -> SchemaTypeInstance
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 SchemaTypeInstance
impl Debug for SchemaTypeInstance
sourceimpl<'de> Deserialize<'de> for SchemaTypeInstance
impl<'de> Deserialize<'de> for SchemaTypeInstance
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<ID> From<ID> for SchemaTypeInstance where
ID: Into<SchemaIdContainer>,
impl<ID> From<ID> for SchemaTypeInstance where
ID: Into<SchemaIdContainer>,
sourceimpl PartialEq<SchemaTypeInstance> for SchemaTypeInstance
impl PartialEq<SchemaTypeInstance> for SchemaTypeInstance
sourcefn eq(&self, other: &SchemaTypeInstance) -> bool
fn eq(&self, other: &SchemaTypeInstance) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SchemaTypeInstance) -> bool
fn ne(&self, other: &SchemaTypeInstance) -> bool
This method tests for !=
.
sourceimpl Serialize for SchemaTypeInstance
impl Serialize for SchemaTypeInstance
impl StructuralPartialEq for SchemaTypeInstance
Auto Trait Implementations
impl RefUnwindSafe for SchemaTypeInstance
impl Send for SchemaTypeInstance
impl Sync for SchemaTypeInstance
impl Unpin for SchemaTypeInstance
impl UnwindSafe for SchemaTypeInstance
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