Struct FieldInfo

#[non_exhaustive]
pub struct FieldInfo<'a> { pub type_name: &'a str, pub field_name: &'a str, pub field_type_name: Option<&'a str> }

Relevant information about a field for which visibility can be determined using ParseCallbacks::field_visibility.

Fields

type_name: &'a str

The name of the type.

field_name: &'a str

The name of the field.

field_type_name: Option<&'a str>

The name of the type of the field.

Trait Implementations

impl<'a> Debug for FieldInfo<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a> Freeze for FieldInfo<'a>

impl<'a> RefUnwindSafe for FieldInfo<'a>

impl<'a> Send for FieldInfo<'a>

impl<'a> Sync for FieldInfo<'a>

impl<'a> Unpin for FieldInfo<'a>

impl<'a> UnsafeUnpin for FieldInfo<'a>

impl<'a> UnwindSafe for FieldInfo<'a>

Blanket Implementations

impl<T> Any for FieldInfo<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FieldInfo<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FieldInfo<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for FieldInfo<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for FieldInfo<'a>

impl<T, U> Into<U> for FieldInfo<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FieldInfo<'a> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for FieldInfo<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>