pub struct Field<'a> {
pub name: &'a str,
pub doc: Option<&'a str>,
pub type: Schema<'a>,
pub default: Option<&'a str>,
}
Expand description
A field within a Record
Fields§
§name: &'a str
§doc: Option<&'a str>
§type: Schema<'a>
§default: Option<&'a str>
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Field<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Field<'a>
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
impl<'a> Eq for Field<'a>
impl<'a> StructuralPartialEq for Field<'a>
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'a>
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