#[non_exhaustive]pub struct ListRecognizersRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub show_deleted: bool,
/* private fields */
}Expand description
Request message for the ListRecognizers method.
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 project and location of Recognizers to list. The expected
format is projects/{project}/locations/{location}.
page_size: i32The maximum number of Recognizers to return. The service may return fewer than this value. If unspecified, at most 5 Recognizers will be returned. The maximum value is 100; values above 100 will be coerced to 100.
page_token: StringA page token, received from a previous ListRecognizers call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListRecognizers must match the call that provided the page token.
show_deleted: boolWhether, or not, to show resources that have been deleted.
Implementations§
Source§impl ListRecognizersRequest
impl ListRecognizersRequest
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_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
Sets the value of page_token.
§Example
ⓘ
let x = ListRecognizersRequest::new().set_page_token("example");Sourcepub fn set_show_deleted<T: Into<bool>>(self, v: T) -> Self
pub fn set_show_deleted<T: Into<bool>>(self, v: T) -> Self
Sets the value of show_deleted.
§Example
ⓘ
let x = ListRecognizersRequest::new().set_show_deleted(true);Trait Implementations§
Source§impl Clone for ListRecognizersRequest
impl Clone for ListRecognizersRequest
Source§fn clone(&self) -> ListRecognizersRequest
fn clone(&self) -> ListRecognizersRequest
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 ListRecognizersRequest
impl Debug for ListRecognizersRequest
Source§impl Default for ListRecognizersRequest
impl Default for ListRecognizersRequest
Source§fn default() -> ListRecognizersRequest
fn default() -> ListRecognizersRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListRecognizersRequest
impl Message for ListRecognizersRequest
Source§impl PartialEq for ListRecognizersRequest
impl PartialEq for ListRecognizersRequest
impl StructuralPartialEq for ListRecognizersRequest
Auto Trait Implementations§
impl Freeze for ListRecognizersRequest
impl RefUnwindSafe for ListRecognizersRequest
impl Send for ListRecognizersRequest
impl Sync for ListRecognizersRequest
impl Unpin for ListRecognizersRequest
impl UnwindSafe for ListRecognizersRequest
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