Enum golem_client::project::ProjectError
source · pub enum ProjectError {
RequestFailure(Error),
InvalidHeaderValue(InvalidHeaderValue),
UnexpectedStatus(StatusCode),
Status404 {
message: String,
},
Status403 {
error: String,
},
Status400 {
errors: Vec<String>,
},
Status500 {
error: String,
},
Status401 {
message: String,
},
}
Variants§
RequestFailure(Error)
InvalidHeaderValue(InvalidHeaderValue)
UnexpectedStatus(StatusCode)
Status404
Status403
Status400
Status500
Status401
Implementations§
source§impl ProjectError
impl ProjectError
pub fn to_project_endpoint_error(&self) -> Option<ProjectEndpointError>
Trait Implementations§
source§impl Debug for ProjectError
impl Debug for ProjectError
source§impl From<Error> for ProjectError
impl From<Error> for ProjectError
source§fn from(error: Error) -> ProjectError
fn from(error: Error) -> ProjectError
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for ProjectError
impl From<InvalidHeaderValue> for ProjectError
source§fn from(error: InvalidHeaderValue) -> ProjectError
fn from(error: InvalidHeaderValue) -> ProjectError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectError
impl Send for ProjectError
impl Sync for ProjectError
impl Unpin for ProjectError
impl !UnwindSafe for ProjectError
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