Struct serde_intermediate::schema::Schema
source · [−]pub struct Schema {
pub data_type: SchemaType,
pub description: String,
}
Fields
data_type: SchemaType
description: String
Implementations
sourceimpl Schema
impl Schema
pub fn new(data_type: impl Into<SchemaType>) -> Self
pub fn description(self, content: impl ToString) -> Self
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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<T> From<T> for Schema where
T: Into<SchemaType>,
impl<T> From<T> for Schema where
T: Into<SchemaType>,
impl StructuralPartialEq for Schema
Auto Trait Implementations
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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