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