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: Ident
ty: Type
indexed: 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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,