#[non_exhaustive]pub struct ListGeneratorsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Available on crate feature
generators only.Expand description
Request message of ListGenerators.
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/location to list generators for. Format:
projects/<Project ID>/locations/<Location ID>
page_size: i32Optional. Maximum number of conversation models to return in a single page. Default to 10.
page_token: StringOptional. The next_page_token value returned from a previous list request.
Implementations§
Source§impl ListGeneratorsRequest
impl ListGeneratorsRequest
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 = ListGeneratorsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListGeneratorsRequest
impl Clone for ListGeneratorsRequest
Source§fn clone(&self) -> ListGeneratorsRequest
fn clone(&self) -> ListGeneratorsRequest
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 ListGeneratorsRequest
impl Debug for ListGeneratorsRequest
Source§impl Default for ListGeneratorsRequest
impl Default for ListGeneratorsRequest
Source§fn default() -> ListGeneratorsRequest
fn default() -> ListGeneratorsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListGeneratorsRequest
impl Message for ListGeneratorsRequest
Source§impl PartialEq for ListGeneratorsRequest
impl PartialEq for ListGeneratorsRequest
impl StructuralPartialEq for ListGeneratorsRequest
Auto Trait Implementations§
impl Freeze for ListGeneratorsRequest
impl RefUnwindSafe for ListGeneratorsRequest
impl Send for ListGeneratorsRequest
impl Sync for ListGeneratorsRequest
impl Unpin for ListGeneratorsRequest
impl UnwindSafe for ListGeneratorsRequest
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