pub struct DocumentCatalog {
pub schema: CatalogSchema,
pub total: u32,
pub returned: u32,
pub offset: u32,
pub truncated: bool,
pub next_offset: Option<u32>,
pub documents: Vec<DocumentSummary>,
}Expand description
Deterministically ordered page of discoverable local documents.
Fields§
§schema: CatalogSchemaExact response schema discriminator.
total: u32Total rows matching the filters before pagination.
returned: u32Number of rows present in Self::documents.
offset: u32Applied zero-based result offset.
truncated: boolWhether matching rows remain after this page.
next_offset: Option<u32>Offset for the next page, when one exists.
documents: Vec<DocumentSummary>Deterministically ordered page of document summaries.
Trait Implementations§
Source§impl Clone for DocumentCatalog
impl Clone for DocumentCatalog
Source§fn clone(&self) -> DocumentCatalog
fn clone(&self) -> DocumentCatalog
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 Debug for DocumentCatalog
impl Debug for DocumentCatalog
Source§impl<'de> Deserialize<'de> for DocumentCatalog
impl<'de> Deserialize<'de> for DocumentCatalog
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DocumentCatalog
Source§impl JsonSchema for DocumentCatalog
impl JsonSchema for DocumentCatalog
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DocumentCatalog
impl PartialEq for DocumentCatalog
Source§impl Serialize for DocumentCatalog
impl Serialize for DocumentCatalog
impl StructuralPartialEq for DocumentCatalog
Auto Trait Implementations§
impl Freeze for DocumentCatalog
impl RefUnwindSafe for DocumentCatalog
impl Send for DocumentCatalog
impl Sync for DocumentCatalog
impl Unpin for DocumentCatalog
impl UnsafeUnpin for DocumentCatalog
impl UnwindSafe for DocumentCatalog
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