Struct cargo::util::auth::AuthorizationError
source · pub struct AuthorizationError {
pub sid: SourceId,
pub login_url: Option<Url>,
pub reason: AuthorizationErrorReason,
}
Expand description
An authorization error from accessing a registry.
Fields§
§sid: SourceId
Url that was attempted
login_url: Option<Url>
Url where the user could log in.
reason: AuthorizationErrorReason
Specific reason indicating what failed
Trait Implementations§
source§impl Debug for AuthorizationError
impl Debug for AuthorizationError
source§impl Display for AuthorizationError
impl Display for AuthorizationError
source§impl Error for AuthorizationError
impl Error for AuthorizationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()