#[non_exhaustive]pub struct ListCasesRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
The request message for the ListCases endpoint.
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.parent: StringRequired. The name of a parent to list cases under.
filter: StringAn expression used to filter cases.
If it’s an empty string, then no filtering happens. Otherwise, the endpoint returns the cases that match the filter.
Expressions use the following fields separated by AND and specified with
=:
state: Can beOPENorCLOSED.priority: Can beP0,P1,P2,P3, orP4. You can specify multiple values for priority using theORoperator. For example,priority=P1 OR priority=P2.creator.email: The email address of the case creator.
EXAMPLES:
state=CLOSEDstate=OPEN AND creator.email="tester@example.com"state=OPEN AND (priority=P0 OR priority=P1)
page_size: i32The maximum number of cases fetched with each request. Defaults to 10.
page_token: StringA token identifying the page of results to return. If unspecified, the first page is retrieved.
Implementations§
Source§impl ListCasesRequest
impl ListCasesRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ListCasesRequest
impl Clone for ListCasesRequest
Source§fn clone(&self) -> ListCasesRequest
fn clone(&self) -> ListCasesRequest
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 ListCasesRequest
impl Debug for ListCasesRequest
Source§impl Default for ListCasesRequest
impl Default for ListCasesRequest
Source§fn default() -> ListCasesRequest
fn default() -> ListCasesRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListCasesRequest
impl Message for ListCasesRequest
Source§impl PartialEq for ListCasesRequest
impl PartialEq for ListCasesRequest
impl StructuralPartialEq for ListCasesRequest
Auto Trait Implementations§
impl Freeze for ListCasesRequest
impl RefUnwindSafe for ListCasesRequest
impl Send for ListCasesRequest
impl Sync for ListCasesRequest
impl Unpin for ListCasesRequest
impl UnwindSafe for ListCasesRequest
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