#[non_exhaustive]pub struct ListConversationsResponse {
pub conversations: Vec<Conversation>,
pub next_page_token: String,
/* private fields */
}Available on crate feature
conversational-search-service only.Expand description
Response for ListConversations 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.conversations: Vec<Conversation>All the Conversations for a given data store.
next_page_token: StringPagination token, if not returned indicates the last page.
Implementations§
Source§impl ListConversationsResponse
impl ListConversationsResponse
pub fn new() -> Self
Sourcepub fn set_conversations<T, V>(self, v: T) -> Self
pub fn set_conversations<T, V>(self, v: T) -> Self
Sets the value of conversations.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::Conversation;
let x = ListConversationsResponse::new()
.set_conversations([
Conversation::default()/* use setters */,
Conversation::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 = ListConversationsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListConversationsResponse
impl Clone for ListConversationsResponse
Source§fn clone(&self) -> ListConversationsResponse
fn clone(&self) -> ListConversationsResponse
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 ListConversationsResponse
impl Debug for ListConversationsResponse
Source§impl Default for ListConversationsResponse
impl Default for ListConversationsResponse
Source§fn default() -> ListConversationsResponse
fn default() -> ListConversationsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListConversationsResponse
impl Message for ListConversationsResponse
impl StructuralPartialEq for ListConversationsResponse
Auto Trait Implementations§
impl Freeze for ListConversationsResponse
impl RefUnwindSafe for ListConversationsResponse
impl Send for ListConversationsResponse
impl Sync for ListConversationsResponse
impl Unpin for ListConversationsResponse
impl UnwindSafe for ListConversationsResponse
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