#[non_exhaustive]pub struct GetNotificationRequest {
pub name: String,
pub language_code: String,
/* private fields */
}Expand description
Request for fetching a notification.
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.name: StringRequired. A name of the notification to retrieve. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{projects}/locations/{location}/notifications/{notification}.
language_code: StringISO 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 GetNotificationRequest
impl GetNotificationRequest
Trait Implementations§
Source§impl Clone for GetNotificationRequest
impl Clone for GetNotificationRequest
Source§fn clone(&self) -> GetNotificationRequest
fn clone(&self) -> GetNotificationRequest
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 GetNotificationRequest
impl Debug for GetNotificationRequest
Source§impl Default for GetNotificationRequest
impl Default for GetNotificationRequest
Source§fn default() -> GetNotificationRequest
fn default() -> GetNotificationRequest
Returns the “default value” for a type. Read more
Source§impl Message for GetNotificationRequest
impl Message for GetNotificationRequest
Source§impl PartialEq for GetNotificationRequest
impl PartialEq for GetNotificationRequest
impl StructuralPartialEq for GetNotificationRequest
Auto Trait Implementations§
impl Freeze for GetNotificationRequest
impl RefUnwindSafe for GetNotificationRequest
impl Send for GetNotificationRequest
impl Sync for GetNotificationRequest
impl Unpin for GetNotificationRequest
impl UnsafeUnpin for GetNotificationRequest
impl UnwindSafe for GetNotificationRequest
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