pub struct Collection<T> {
pub query: CollectionQuery,
pub capabilities: Capabilities,
pub page: CollectionPage<T>,
}Expand description
A loaded collection: the query parsed from a request, the backend’s capabilities, and the page of rows they produced. Hand it to a data table, which needs all three.
Fields§
§query: CollectionQueryThe query parsed from the request.
capabilities: CapabilitiesWhat the backend supports.
page: CollectionPage<T>The rows the query produced.
Trait Implementations§
Source§impl<T> Clone for Collection<T>where
T: Clone,
impl<T> Clone for Collection<T>where
T: Clone,
Source§fn clone(&self) -> Collection<T>
fn clone(&self) -> Collection<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for Collection<T>where
T: Debug,
impl<T> Debug for Collection<T>where
T: Debug,
Source§impl<T> PartialEq for Collection<T>where
T: PartialEq,
impl<T> PartialEq for Collection<T>where
T: PartialEq,
impl<T> StructuralPartialEq for Collection<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Collection<T>where
CollectionPage<T>: Freeze,
impl<T> RefUnwindSafe for Collection<T>where
CollectionPage<T>: RefUnwindSafe,
impl<T> Send for Collection<T>where
CollectionPage<T>: Send,
impl<T> Sync for Collection<T>where
CollectionPage<T>: Sync,
impl<T> Unpin for Collection<T>where
CollectionPage<T>: Unpin,
impl<T> UnsafeUnpin for Collection<T>where
CollectionPage<T>: UnsafeUnpin,
impl<T> UnwindSafe for Collection<T>where
CollectionPage<T>: UnwindSafe,
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