pub enum ProjectGrantError {
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 ProjectGrantError
impl ProjectGrantError
pub fn to_project_endpoint_error(&self) -> Option<ProjectEndpointError>
Trait Implementations§
source§impl Debug for ProjectGrantError
impl Debug for ProjectGrantError
source§impl From<Error> for ProjectGrantError
impl From<Error> for ProjectGrantError
source§fn from(error: Error) -> ProjectGrantError
fn from(error: Error) -> ProjectGrantError
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for ProjectGrantError
impl From<InvalidHeaderValue> for ProjectGrantError
source§fn from(error: InvalidHeaderValue) -> ProjectGrantError
fn from(error: InvalidHeaderValue) -> ProjectGrantError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectGrantError
impl Send for ProjectGrantError
impl Sync for ProjectGrantError
impl Unpin for ProjectGrantError
impl !UnwindSafe for ProjectGrantError
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