Struct ya_client_model::error_message::ErrorMessage
source · [−]Fields
message: Option<String>Implementations
sourceimpl ErrorMessage
impl ErrorMessage
pub fn new(message: impl ToString) -> ErrorMessage
Trait Implementations
sourceimpl Clone for ErrorMessage
impl Clone for ErrorMessage
sourcefn clone(&self) -> ErrorMessage
fn clone(&self) -> ErrorMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ErrorMessage
impl Debug for ErrorMessage
sourceimpl Default for ErrorMessage
impl Default for ErrorMessage
sourcefn default() -> ErrorMessage
fn default() -> ErrorMessage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ErrorMessage
impl<'de> Deserialize<'de> for ErrorMessage
sourcefn 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
sourceimpl Display for ErrorMessage
impl Display for ErrorMessage
sourceimpl Error for ErrorMessage
impl Error for ErrorMessage
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<T: Into<String>> From<T> for ErrorMessage
impl<T: Into<String>> From<T> for ErrorMessage
sourceimpl PartialEq<ErrorMessage> for ErrorMessage
impl PartialEq<ErrorMessage> for ErrorMessage
sourcefn eq(&self, other: &ErrorMessage) -> bool
fn eq(&self, other: &ErrorMessage) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for ErrorMessage
impl Serialize for ErrorMessage
impl StructuralPartialEq for ErrorMessage
Auto Trait Implementations
impl RefUnwindSafe for ErrorMessage
impl Send for ErrorMessage
impl Sync for ErrorMessage
impl Unpin for ErrorMessage
impl UnwindSafe for ErrorMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more