pub struct TypeField {
pub name: String,
pub type_name: String,
pub optional: bool,
}Expand description
类型字段
表示类型的一个字段
Fields§
§name: String字段名称
type_name: String字段类型
optional: bool是否可选
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeField
impl<'de> Deserialize<'de> for TypeField
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
Auto Trait Implementations§
impl Freeze for TypeField
impl RefUnwindSafe for TypeField
impl Send for TypeField
impl Sync for TypeField
impl Unpin for TypeField
impl UnsafeUnpin for TypeField
impl UnwindSafe for TypeField
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