#[non_exhaustive]pub struct ListNotificationsResponse {
pub notifications: Vec<Notification>,
pub next_page_token: String,
pub total_size: i32,
/* private fields */
}Expand description
Response of ListNotifications 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.notifications: Vec<Notification>List of notifications under a given parent.
next_page_token: StringA token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
total_size: i32Estimation of a total number of notifications.
Implementations§
Source§impl ListNotificationsResponse
impl ListNotificationsResponse
Sourcepub fn set_notifications<T, V>(self, v: T) -> Self
pub fn set_notifications<T, V>(self, v: T) -> Self
Sets the value of notifications.
§Example
ⓘ
use google_cloud_advisorynotifications_v1::model::Notification;
let x = ListNotificationsResponse::new()
.set_notifications([
Notification::default()/* use setters */,
Notification::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 = ListNotificationsResponse::new().set_next_page_token("example");Sourcepub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_size.
§Example
ⓘ
let x = ListNotificationsResponse::new().set_total_size(42);Trait Implementations§
Source§impl Clone for ListNotificationsResponse
impl Clone for ListNotificationsResponse
Source§fn clone(&self) -> ListNotificationsResponse
fn clone(&self) -> ListNotificationsResponse
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 ListNotificationsResponse
impl Debug for ListNotificationsResponse
Source§impl Default for ListNotificationsResponse
impl Default for ListNotificationsResponse
Source§fn default() -> ListNotificationsResponse
fn default() -> ListNotificationsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListNotificationsResponse
impl Message for ListNotificationsResponse
impl StructuralPartialEq for ListNotificationsResponse
Auto Trait Implementations§
impl Freeze for ListNotificationsResponse
impl RefUnwindSafe for ListNotificationsResponse
impl Send for ListNotificationsResponse
impl Sync for ListNotificationsResponse
impl Unpin for ListNotificationsResponse
impl UnsafeUnpin for ListNotificationsResponse
impl UnwindSafe for ListNotificationsResponse
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