Struct serde_intermediate::schema::SchemaTypeInstance
source · [−]pub struct SchemaTypeInstance {
pub id: SchemaIdContainer,
pub description: String,
}Fields
id: SchemaIdContainerdescription: StringImplementations
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 moresourceimpl 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 SchemaTypeInstancewhere
ID: Into<SchemaIdContainer>,
impl<ID> From<ID> for SchemaTypeInstancewhere
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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