[][src]Struct structural::structural_trait::FieldInfo

pub struct FieldInfo {
    pub original_name: &'static str,
    pub accessor_name: &'static str,
}

Information about a field with accessor trait impls.

Fields

original_name: &'static str

The original name of the field.

accessor_name: &'static str

The name used in the accessor trait impls for the field.

Methods

impl FieldInfo[src]

pub const fn not_renamed(name: &'static str) -> Self[src]

Constructs a FieldInfo for a field which uses the same name in its accessor impl.

Auto Trait Implementations

Blanket Implementations

impl<T> GetFieldExt for T where
    T: ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more

impl<T> SelfOps for T where
    T: ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.