pub enum GetVoiceError {
NotModified304,
BadRequest400,
Unauthorised401(String),
NotAcceptable406,
UnsupportedMediaType415,
InternalServerError500,
ServiceUnavailable503,
ConnectionError(String),
}
Available on crate feature
tts
only.Expand description
Errors that may be returned when getting information about a particular WatsonVoice
Variants§
NotModified304
The requested resource has not been modified since the time specified by the If-Modified-Since header, as documented in the HTTP specification
BadRequest400
A required input parameter is null or a specified input parameter or header value is invalid or not supported. Please check your customisation id
The specified customisation_id is invalid for the requesting credentials
NotAcceptable406
The request specified an Accept header with an incompatible content type
UnsupportedMediaType415
The request specified an unacceptable media type
InternalServerError500
The service experienced an internal error
The service is currently unavailable
ConnectionError(String)
There was an error making the request
Trait Implementations§
Source§impl Debug for GetVoiceError
impl Debug for GetVoiceError
Source§impl Display for GetVoiceError
impl Display for GetVoiceError
Source§impl Error for GetVoiceError
impl Error for GetVoiceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for GetVoiceError
impl RefUnwindSafe for GetVoiceError
impl Send for GetVoiceError
impl Sync for GetVoiceError
impl Unpin for GetVoiceError
impl UnwindSafe for GetVoiceError
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