Struct google_clouddebugger2::api::FormatMessage
source · pub struct FormatMessage {
pub format: Option<String>,
pub parameters: Option<Vec<String>>,
}
Expand description
Represents a message with parameters.
This type is not used in any activity, and only used as part of another schema.
Fields§
§format: Option<String>
Format template for the message. The format
uses placeholders $0
, $1
, etc. to reference parameters. $$
can be used to denote the $
character. Examples: * Failed to load '$0' which helps debug $1 the first time it is loaded. Again, $0 is very important.
* Please pay $$10 to use $0 instead of $1.
parameters: Option<Vec<String>>
Optional parameters to be embedded into the message.
Trait Implementations§
source§impl Clone for FormatMessage
impl Clone for FormatMessage
source§fn clone(&self) -> FormatMessage
fn clone(&self) -> FormatMessage
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 FormatMessage
impl Debug for FormatMessage
source§impl Default for FormatMessage
impl Default for FormatMessage
source§fn default() -> FormatMessage
fn default() -> FormatMessage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FormatMessage
impl<'de> Deserialize<'de> for FormatMessage
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 FormatMessage
impl Serialize for FormatMessage
impl Part for FormatMessage
Auto Trait Implementations§
impl RefUnwindSafe for FormatMessage
impl Send for FormatMessage
impl Sync for FormatMessage
impl Unpin for FormatMessage
impl UnwindSafe for FormatMessage
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