Enum huelib::response::Response [−][src]
pub enum Response<T> {
Success(T),
Error(Error),
}
Expand description
A response that is returned from the Philips Hue API.
Variants
The response from the API if the request succeeded.
Error(Error)
The response from the API if the request failed.
Tuple Fields of Error
0: Error
Implementations
Converts the response into a result.
Trait Implementations
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
Auto Trait Implementations
impl<T> RefUnwindSafe for Response<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Response<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more