pub struct ListNotificationsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub view: i32,
pub language_code: String,
}
Expand description
Request for fetching all notifications for a given parent.
Fields§
§parent: String
Required. The parent, which owns this collection of notifications. Must be of the form “organizations/{organization}/locations/{location}” or “projects/{project}/locations/{location}”.
page_size: i32
The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.
page_token: String
A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.
view: i32
Specifies which parts of the notification resource should be returned in the response.
language_code: String
ISO code for requested localization language. If unset, will be interpereted as “en”. If the requested language is valid, but not supported for this notification, English will be returned with an “Not applicable” LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
Implementations§
source§impl ListNotificationsRequest
impl ListNotificationsRequest
sourcepub fn view(&self) -> NotificationView
pub fn view(&self) -> NotificationView
Returns the enum value of view
, or the default if the field is set to an invalid enum value.
sourcepub fn set_view(&mut self, value: NotificationView)
pub fn set_view(&mut self, value: NotificationView)
Sets view
to the provided enum value.
Trait Implementations§
source§impl Clone for ListNotificationsRequest
impl Clone for ListNotificationsRequest
source§fn clone(&self) -> ListNotificationsRequest
fn clone(&self) -> ListNotificationsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListNotificationsRequest
impl Debug for ListNotificationsRequest
source§impl Default for ListNotificationsRequest
impl Default for ListNotificationsRequest
source§impl Message for ListNotificationsRequest
impl Message for ListNotificationsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListNotificationsRequest
impl PartialEq for ListNotificationsRequest
source§fn eq(&self, other: &ListNotificationsRequest) -> bool
fn eq(&self, other: &ListNotificationsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListNotificationsRequest
Auto Trait Implementations§
impl Freeze for ListNotificationsRequest
impl RefUnwindSafe for ListNotificationsRequest
impl Send for ListNotificationsRequest
impl Sync for ListNotificationsRequest
impl Unpin for ListNotificationsRequest
impl UnwindSafe for ListNotificationsRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request