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