pub struct FieldInfo {
pub name: Option<String>,
pub ty: String,
pub doc_comment: Option<String>,
pub visibility: Visibility,
pub attributes: Vec<String>,
}Expand description
Represents a field in a struct or enum variant.
Fields§
§name: Option<String>The name of the field (None for tuple struct fields).
ty: StringThe type of the field as a string.
doc_comment: Option<String>Documentation comment for the field.
visibility: VisibilityVisibility of the field.
attributes: Vec<String>Attributes on the field.
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
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin 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