#[non_exhaustive]pub struct ListGeneratorsResponse {
pub generators: Vec<Generator>,
pub next_page_token: String,
/* private fields */
}Available on crate feature
generators only.Expand description
Response 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.generators: Vec<Generator>List of generators retrieved.
next_page_token: StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Implementations§
Source§impl ListGeneratorsResponse
impl ListGeneratorsResponse
pub fn new() -> Self
Sourcepub fn set_generators<T, V>(self, v: T) -> Self
pub fn set_generators<T, V>(self, v: T) -> Self
Sets the value of generators.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::Generator;
let x = ListGeneratorsResponse::new()
.set_generators([
Generator::default()/* use setters */,
Generator::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListGeneratorsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListGeneratorsResponse
impl Clone for ListGeneratorsResponse
Source§fn clone(&self) -> ListGeneratorsResponse
fn clone(&self) -> ListGeneratorsResponse
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 ListGeneratorsResponse
impl Debug for ListGeneratorsResponse
Source§impl Default for ListGeneratorsResponse
impl Default for ListGeneratorsResponse
Source§fn default() -> ListGeneratorsResponse
fn default() -> ListGeneratorsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListGeneratorsResponse
impl Message for ListGeneratorsResponse
Source§impl PartialEq for ListGeneratorsResponse
impl PartialEq for ListGeneratorsResponse
impl StructuralPartialEq for ListGeneratorsResponse
Auto Trait Implementations§
impl Freeze for ListGeneratorsResponse
impl RefUnwindSafe for ListGeneratorsResponse
impl Send for ListGeneratorsResponse
impl Sync for ListGeneratorsResponse
impl Unpin for ListGeneratorsResponse
impl UnwindSafe for ListGeneratorsResponse
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