#[non_exhaustive]pub struct AppsDatastoreCountRequest {
pub datastore: String,
pub expression: Option<String>,
pub expression_attributes: Option<Value>,
pub expression_values: Option<Value>,
pub app_id: Option<String>,
}Expand description
Arguments for the Slack Web API method apps.datastore.count: Count the number of items in a datastore that match a query
Send it with SlackClient::apps_datastore_count.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.datastore: StringName of the datastore
expression: Option<String>A query filter expression
expression_attributes: Option<Value>A map of attributes referenced in expression
expression_values: Option<Value>A map of values referenced in expression
app_id: Option<String>Required if calling with user token
Implementations§
Source§impl AppsDatastoreCountRequest
impl AppsDatastoreCountRequest
pub fn new(datastore: impl Into<String>) -> Self
pub fn expression(self, expression: impl Into<String>) -> Self
pub fn expression_attributes(self, expression_attributes: Value) -> Self
pub fn expression_values(self, expression_values: Value) -> Self
pub fn app_id(self, app_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AppsDatastoreCountRequest
impl Clone for AppsDatastoreCountRequest
Source§impl Debug for AppsDatastoreCountRequest
impl Debug for AppsDatastoreCountRequest
impl StructuralPartialEq for AppsDatastoreCountRequest
Auto Trait Implementations§
impl Freeze for AppsDatastoreCountRequest
impl RefUnwindSafe for AppsDatastoreCountRequest
impl Send for AppsDatastoreCountRequest
impl Sync for AppsDatastoreCountRequest
impl Unpin for AppsDatastoreCountRequest
impl UnsafeUnpin for AppsDatastoreCountRequest
impl UnwindSafe for AppsDatastoreCountRequest
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