Struct google_compute1::api::LocalizedMessage
source · pub struct LocalizedMessage {
pub locale: Option<String>,
pub message: Option<String>,
}
Expand description
Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
This type is not used in any activity, and only used as part of another schema.
Fields§
§locale: Option<String>
The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: “en-US”, “fr-CH”, “es-MX”
message: Option<String>
The localized error message in the above locale.
Trait Implementations§
source§impl Clone for LocalizedMessage
impl Clone for LocalizedMessage
source§fn clone(&self) -> LocalizedMessage
fn clone(&self) -> LocalizedMessage
Returns a copy 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 LocalizedMessage
impl Debug for LocalizedMessage
source§impl Default for LocalizedMessage
impl Default for LocalizedMessage
source§fn default() -> LocalizedMessage
fn default() -> LocalizedMessage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LocalizedMessage
impl<'de> Deserialize<'de> for LocalizedMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for LocalizedMessage
impl Serialize for LocalizedMessage
impl Part for LocalizedMessage
Auto Trait Implementations§
impl RefUnwindSafe for LocalizedMessage
impl Send for LocalizedMessage
impl Sync for LocalizedMessage
impl Unpin for LocalizedMessage
impl UnwindSafe for LocalizedMessage
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