Struct entity_macros_data::StructEntField[][src]

pub struct StructEntField {
    pub name: Ident,
    pub ty: Type,
    pub indexed: bool,
    pub mutable: bool,
    pub computed: Option<EntFieldComputed>,
}

Information about a specific field for an ent

Fields

name: Identty: Typeindexed: bool

If field(indexed) provided, signifies that this field should be indexed by the database where it is stored

mutable: bool

If field(mutable) provided, signifies that this field should be able to be mutated and that a typed method for mutation should be included when generating typed methods

computed: Option<EntFieldComputed>

If field(computed(…)) provided, signifies that this field should be computed based on provided expression instead of treated as data stored in the struct (and database)

Cannot be used with mutable

Trait Implementations

impl Debug for EntField[src]

Auto Trait Implementations

impl RefUnwindSafe for EntField

impl !Send for EntField

impl !Sync for EntField

impl Unpin for EntField

impl UnwindSafe for EntField

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.