pub struct FieldDesc {
pub key: &'static str,
pub name: &'static str,
pub table: &'static ModelTable,
pub readonly: bool,
pub whole: bool,
pub demanded: bool,
pub items: Option<&'static ItemOps>,
}Expand description
One field of a record, as ResourceDesc lists it.
Fields§
§key: &'static strThe key it is stored under.
name: &'static strIts Rust name.
table: &'static ModelTableIts type’s table.
readonly: boolChanged only by the record’s verbs (#[model(readonly)]).
whole: boolRead all of it whenever it is read (#[model(whole)]).
demanded: boolLeft unread by a view’s reader until a view demands its item
(#[model(demanded)], for_view).
items: Option<&'static ItemOps>Its items, for a collection whose items are published.
Auto Trait Implementations§
impl Forget for FieldDesc
impl Freeze for FieldDesc
impl Move for FieldDesc
impl RefUnwindSafe for FieldDesc
impl Send for FieldDesc
impl Sync for FieldDesc
impl Unpin for FieldDesc
impl UnsafeUnpin for FieldDesc
impl UnwindSafe for FieldDesc
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more