Enum tmdb_api::error::ServerBodyError
source · [−]pub enum ServerBodyError {
Other(ServerOtherBodyError),
Validation(ServerValidationBodyError),
}Variants
Other(ServerOtherBodyError)
Validation(ServerValidationBodyError)
Implementations
sourceimpl ServerBodyError
impl ServerBodyError
pub fn as_other_error(&self) -> Option<&ServerOtherBodyError>
pub fn as_validation_error(&self) -> Option<&ServerValidationBodyError>
Trait Implementations
sourceimpl Debug for ServerBodyError
impl Debug for ServerBodyError
sourceimpl<'de> Deserialize<'de> for ServerBodyError
impl<'de> Deserialize<'de> for ServerBodyError
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 From<ServerOtherBodyError> for ServerBodyError
impl From<ServerOtherBodyError> for ServerBodyError
sourcefn from(inner: ServerOtherBodyError) -> Self
fn from(inner: ServerOtherBodyError) -> Self
Converts to this type from the input type.
sourceimpl From<ServerValidationBodyError> for ServerBodyError
impl From<ServerValidationBodyError> for ServerBodyError
sourcefn from(inner: ServerValidationBodyError) -> Self
fn from(inner: ServerValidationBodyError) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ServerBodyError
impl Serialize for ServerBodyError
Auto Trait Implementations
impl RefUnwindSafe for ServerBodyError
impl Send for ServerBodyError
impl Sync for ServerBodyError
impl Unpin for ServerBodyError
impl UnwindSafe for ServerBodyError
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