pub struct ScopeSearch {
pub query: SearchQuery,
pub total: u32,
pub returned: u32,
pub offset: u32,
pub truncated: bool,
pub next_offset: Option<u32>,
pub documents: Vec<ScopedSearchDocument>,
}Expand description
Globally paginated search over a resolved document scope.
Fields§
§query: SearchQueryNormalized search configuration.
total: u32Matching line groups across all documents before pagination.
returned: u32Matching line groups present in this response.
offset: u32Applied global zero-based offset.
truncated: boolWhether additional matching line groups remain.
next_offset: Option<u32>Global offset for the next page.
documents: Vec<ScopedSearchDocument>Non-empty document groups in scope order.
Trait Implementations§
Source§impl Clone for ScopeSearch
impl Clone for ScopeSearch
Source§fn clone(&self) -> ScopeSearch
fn clone(&self) -> ScopeSearch
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 ScopeSearch
impl Debug for ScopeSearch
Source§impl<'de> Deserialize<'de> for ScopeSearch
impl<'de> Deserialize<'de> for ScopeSearch
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 ScopeSearch
Source§impl JsonSchema for ScopeSearch
impl JsonSchema for ScopeSearch
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 ScopeSearch
impl PartialEq for ScopeSearch
Source§impl Serialize for ScopeSearch
impl Serialize for ScopeSearch
impl StructuralPartialEq for ScopeSearch
Auto Trait Implementations§
impl Freeze for ScopeSearch
impl RefUnwindSafe for ScopeSearch
impl Send for ScopeSearch
impl Sync for ScopeSearch
impl Unpin for ScopeSearch
impl UnsafeUnpin for ScopeSearch
impl UnwindSafe for ScopeSearch
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