pub struct Query {
pub property: Option<String>,
pub value: Option<Value>,
pub limit: Option<usize>,
pub start_val: Option<Value>,
pub end_val: Option<Value>,
pub offset: usize,
pub sort_by: Option<String>,
pub sort_desc: bool,
pub include_external: bool,
pub include_nested: bool,
pub for_agent: ForAgent,
}Expand description
Use this to construct a list of Resources
Fields§
§property: Option<String>Filter by Property
value: Option<Value>Filter by Value
limit: Option<usize>Maximum of items to return, if none returns all items.
start_val: Option<Value>Value at which to begin lexicographically sorting things.
end_val: Option<Value>Value at which to stop lexicographically sorting things.
offset: usizeHow many items to skip from the first one
sort_by: Option<String>The Property URL that is used to sort the results
sort_desc: boolSort descending instead of ascending.
include_external: boolWhether to include non-server resources
include_nested: boolWhether to include full Resources in the result, if not, will add empty vector here.
for_agent: ForAgentFor which Agent the query is executed. Pass None if you want to skip permission checks.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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