pub struct ListOptions<'a> {
pub files: Map<String, Value>,
pub loader: Option<&'a dyn FileLoader>,
pub basepath: String,
pub language: String,
pub data: Value,
pub page: Value,
pub total: Value,
pub layout: Value,
}Expand description
Composition, language, display context and pagination inputs for a list.
Fields§
§files: Map<String, Value>Parsed documents available to composition.
loader: Option<&'a dyn FileLoader>Optional explicit composition loader.
basepath: StringBase directory for relative document references.
language: StringContent language.
data: ValueList-level data used by column visibility expressions: null or an object.
page: ValueCurrent page: null for none, otherwise an integer from 1 to 9007199254740991.
total: ValueTotal item count: null for none, otherwise an integer from 0 to 9007199254740991; no total is derived from display rows.
layout: ValueOutput layout: null (table), table or card.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ListOptions<'a>
impl<'a> !Send for ListOptions<'a>
impl<'a> !Sync for ListOptions<'a>
impl<'a> !UnwindSafe for ListOptions<'a>
impl<'a> Freeze for ListOptions<'a>
impl<'a> Unpin for ListOptions<'a>
impl<'a> UnsafeUnpin for ListOptions<'a>
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