Struct serde_intermediate::schema::SchemaTypeInstance
source · pub struct SchemaTypeInstance {
pub id: SchemaIdContainer,
pub description: String,
}
Fields§
§id: SchemaIdContainer
§description: String
Implementations§
source§impl SchemaTypeInstance
impl SchemaTypeInstance
pub fn new(id: impl Into<SchemaIdContainer>) -> Self
pub fn description(self, content: impl ToString) -> Self
Trait Implementations§
source§impl Clone for SchemaTypeInstance
impl Clone for SchemaTypeInstance
source§fn clone(&self) -> SchemaTypeInstance
fn clone(&self) -> SchemaTypeInstance
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 SchemaTypeInstance
impl Debug for SchemaTypeInstance
source§impl<'de> Deserialize<'de> for SchemaTypeInstance
impl<'de> Deserialize<'de> for SchemaTypeInstance
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<ID> From<ID> for SchemaTypeInstancewhere
ID: Into<SchemaIdContainer>,
impl<ID> From<ID> for SchemaTypeInstancewhere ID: Into<SchemaIdContainer>,
source§impl PartialEq<SchemaTypeInstance> for SchemaTypeInstance
impl PartialEq<SchemaTypeInstance> for SchemaTypeInstance
source§fn 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 ==
.source§impl 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§
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