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 for SchemaTypeInstance
impl PartialEq for SchemaTypeInstance
Source§impl Serialize for SchemaTypeInstance
impl Serialize for SchemaTypeInstance
impl StructuralPartialEq for SchemaTypeInstance
Auto Trait Implementations§
impl Freeze for SchemaTypeInstance
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