pub struct ODataQuery {
pub filter: Option<Box<Expr>>,
pub order: ODataOrderBy,
pub limit: Option<u64>,
pub cursor: Option<CursorV1>,
pub filter_hash: Option<String>,
pub select: Option<Vec<String>>,
}Fields§
§filter: Option<Box<Expr>>§order: ODataOrderBy§limit: Option<u64>§cursor: Option<CursorV1>§filter_hash: Option<String>§select: Option<Vec<String>>Implementations§
Source§impl ODataQuery
impl ODataQuery
pub fn new() -> ODataQuery
pub fn with_filter(self, expr: Expr) -> ODataQuery
pub fn with_order(self, order: ODataOrderBy) -> ODataQuery
pub fn with_limit(self, limit: u64) -> ODataQuery
pub fn with_cursor(self, cursor: CursorV1) -> ODataQuery
pub fn with_filter_hash(self, hash: String) -> ODataQuery
pub fn with_select(self, fields: Vec<String>) -> ODataQuery
Sourcepub fn has_filter(&self) -> bool
pub fn has_filter(&self) -> bool
Check if filter is present
Sourcepub fn into_filter(self) -> Option<Expr>
pub fn into_filter(self) -> Option<Expr>
Extract filter into AST
Sourcepub fn has_select(&self) -> bool
pub fn has_select(&self) -> bool
Check if field selection is present
Sourcepub fn selected_fields(&self) -> Option<&[String]>
pub fn selected_fields(&self) -> Option<&[String]>
Get selected fields
Trait Implementations§
Source§impl Clone for ODataQuery
impl Clone for ODataQuery
Source§fn clone(&self) -> ODataQuery
fn clone(&self) -> ODataQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 ODataQuery
impl Debug for ODataQuery
Source§impl Default for ODataQuery
impl Default for ODataQuery
Source§fn default() -> ODataQuery
fn default() -> ODataQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ODataQuery
impl RefUnwindSafe for ODataQuery
impl Send for ODataQuery
impl Sync for ODataQuery
impl Unpin for ODataQuery
impl UnwindSafe for ODataQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> WithSecurityContext for T
impl<T> WithSecurityContext for T
Source§fn security_ctx<'a>(&'a self, ctx: &'a SecurityContext) -> Secured<'a, T>
fn security_ctx<'a>(&'a self, ctx: &'a SecurityContext) -> Secured<'a, T>
Binds a security context to this client, returning a
Secured wrapper. Read more