pub struct ItemCollection {
pub field: &'static str,
pub labelled: bool,
pub items: Vec<(Id, String)>,
pub within: Vec<(&'static str, Id)>,
}Expand description
The items of one collection field, as #[derive(Model)] lists them.
Fields§
§field: &'static strThe field’s Rust name.
labelled: boolIts items carry a #[model(label)]: they are published as item
resources (which search hits and agents name) even with no item
verbs or effects.
items: Vec<(Id, String)>Each item’s id and a human label (its first text, else its id).
within: Vec<(&'static str, Id)>The items this collection sits in, outermost first: a slide’s
elements are within ("slides", <slide>). Empty for the record’s own
collections.
Trait Implementations§
Source§impl Clone for ItemCollection
impl Clone for ItemCollection
Source§impl Debug for ItemCollection
impl Debug for ItemCollection
impl Eq for ItemCollection
Source§impl PartialEq for ItemCollection
impl PartialEq for ItemCollection
impl StructuralPartialEq for ItemCollection
Auto Trait Implementations§
impl Forget for ItemCollection
impl Freeze for ItemCollection
impl Move for ItemCollection
impl RefUnwindSafe for ItemCollection
impl Send for ItemCollection
impl Sync for ItemCollection
impl Unpin for ItemCollection
impl UnsafeUnpin for ItemCollection
impl UnwindSafe for ItemCollection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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