pub struct HelloWorld<'data> {
    pub message: Cow<'data, str>,
}Expand description
A struct containing “Hello World” in the requested language.
Fields§
§message: Cow<'data, str>The translation of “Hello World”.
Trait Implementations§
Source§impl<'data> Clone for HelloWorld<'data>
 
impl<'data> Clone for HelloWorld<'data>
Source§fn clone(&self) -> HelloWorld<'data>
 
fn clone(&self) -> HelloWorld<'data>
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<'data> Debug for HelloWorld<'data>
 
impl<'data> Debug for HelloWorld<'data>
Source§impl Default for HelloWorld<'_>
 
impl Default for HelloWorld<'_>
Source§impl<'de: 'data, 'data> Deserialize<'de> for HelloWorld<'data>
 
impl<'de: 'data, 'data> Deserialize<'de> for HelloWorld<'data>
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<'data> MaybeAsVarULE for HelloWorld<'data>
 
impl<'data> MaybeAsVarULE for HelloWorld<'data>
Source§impl<'data> PartialEq for HelloWorld<'data>
 
impl<'data> PartialEq for HelloWorld<'data>
Source§impl<'a> Yokeable<'a> for HelloWorld<'static>
 
impl<'a> Yokeable<'a> for HelloWorld<'static>
Source§type Output = HelloWorld<'a>
 
type Output = HelloWorld<'a>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
 
fn transform_owned(self) -> Self::Output
Source§impl<'a> ZeroFrom<'a, str> for HelloWorld<'a>
 
impl<'a> ZeroFrom<'a, str> for HelloWorld<'a>
Source§impl<'zf, 'zf_inner> ZeroFrom<'zf, HelloWorld<'zf_inner>> for HelloWorld<'zf>
 
impl<'zf, 'zf_inner> ZeroFrom<'zf, HelloWorld<'zf_inner>> for HelloWorld<'zf>
Source§fn zero_from(this: &'zf HelloWorld<'zf_inner>) -> Self
 
fn zero_from(this: &'zf HelloWorld<'zf_inner>) -> Self
Clone the other 
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for HelloWorld<'data>
Auto Trait Implementations§
impl<'data> Freeze for HelloWorld<'data>
impl<'data> RefUnwindSafe for HelloWorld<'data>
impl<'data> Send for HelloWorld<'data>
impl<'data> Sync for HelloWorld<'data>
impl<'data> Unpin for HelloWorld<'data>
impl<'data> UnwindSafe for HelloWorld<'data>
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more