Struct teo_result::Error
source · pub struct Error {
pub message: String,
pub prefixes: Option<Vec<String>>,
pub title: Option<String>,
pub code: Option<u16>,
pub errors: Option<IndexMap<String, String>>,
pub platform_native_object: Option<Arc<dyn Any + Send + Sync>>,
}Fields§
§message: String§prefixes: Option<Vec<String>>§title: Option<String>§code: Option<u16>§errors: Option<IndexMap<String, String>>§platform_native_object: Option<Arc<dyn Any + Send + Sync>>Implementations§
source§impl Error
impl Error
pub fn new(message: impl Into<String>) -> Self
pub fn new_with_code(message: impl Into<String>, code: u16) -> Self
pub fn new_with_code_title( message: impl Into<String>, code: u16, title: impl Into<String> ) -> Self
pub fn new_with_code_title_errors( message: impl Into<String>, code: u16, title: impl Into<String>, errors: IndexMap<String, String> ) -> Self
pub fn new_with_title_errors( message: impl Into<String>, title: impl Into<String>, errors: IndexMap<String, String> ) -> Self
pub fn prefixed(&self, prefix: impl Into<String>) -> Self
pub fn title(&self) -> &str
pub fn message(&self) -> String
pub fn assign_platform_native_object<T: 'static + Send + Sync>( &mut self, val: T )
pub fn platform_native_object<T: 'static + Send>(&self) -> Option<&T>
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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