Struct bonsaidb_core::networking::Query
source · pub struct Query {
pub database: String,
pub view: ViewName,
pub key: Option<SerializedQueryKey>,
pub order: Sort,
pub limit: Option<u32>,
pub access_policy: AccessPolicy,
}
Expand description
Queries a view.
Fields§
§database: String
The name of the database.
view: ViewName
The name of the view.
key: Option<SerializedQueryKey>
The filter for the view.
order: Sort
The order for the query into the view.
limit: Option<u32>
The maximum number of results to return.
access_policy: AccessPolicy
The access policy for the query.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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
Auto Trait Implementations§
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