pub struct FieldInfo {
pub name: String,
pub rust_type: String,
pub is_optional: bool,
pub is_public: bool,
pub validator_attributes: Option<ValidatorAttributes>,
pub serde_rename: Option<String>,
pub type_structure: TypeStructure,
}Fields§
§name: String§rust_type: String§is_optional: bool§is_public: bool§validator_attributes: Option<ValidatorAttributes>§serde_rename: Option<String>Serde rename attribute: #[serde(rename = “…”)]
type_structure: TypeStructureStructured representation of the type for generators
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldInfo
impl<'de> Deserialize<'de> for FieldInfo
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 StructuralPartialEq for FieldInfo
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnsafeUnpin for FieldInfo
impl UnwindSafe for FieldInfo
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