pub struct DecoratorConfig {
pub prefix: String,
pub suffix: String,
}Expand description
Decorator package configuration.
Modifies echo output with prefix and suffix.
Fields§
§prefix: StringPrefix to add before the echo message.
suffix: StringSuffix to add after the echo message.
Trait Implementations§
Source§impl Clone for DecoratorConfig
impl Clone for DecoratorConfig
Source§fn clone(&self) -> DecoratorConfig
fn clone(&self) -> DecoratorConfig
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 DecoratorConfig
impl Debug for DecoratorConfig
Source§impl Default for DecoratorConfig
impl Default for DecoratorConfig
Source§fn default() -> DecoratorConfig
fn default() -> DecoratorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecoratorConfig
impl<'de> Deserialize<'de> for DecoratorConfig
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
Auto Trait Implementations§
impl Freeze for DecoratorConfig
impl RefUnwindSafe for DecoratorConfig
impl Send for DecoratorConfig
impl Sync for DecoratorConfig
impl Unpin for DecoratorConfig
impl UnsafeUnpin for DecoratorConfig
impl UnwindSafe for DecoratorConfig
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