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