pub enum PrHttpAuthentication {
None,
Bearer(PrAuthToken),
Basic {
username: String,
token: PrAuthToken,
},
}Expand description
Ephemeral provider authentication passed only to the HTTP transport.
Variants§
None
Anonymous public API request.
Bearer(PrAuthToken)
OAuth or repository/project/workspace access token.
Basic
Atlassian account email and API token.
Fields
§
token: PrAuthTokenEphemeral API token used as the Basic-auth password.
Trait Implementations§
Source§impl Clone for PrHttpAuthentication
impl Clone for PrHttpAuthentication
Source§fn clone(&self) -> PrHttpAuthentication
fn clone(&self) -> PrHttpAuthentication
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrHttpAuthentication
impl Debug for PrHttpAuthentication
Source§impl Default for PrHttpAuthentication
impl Default for PrHttpAuthentication
Source§fn default() -> PrHttpAuthentication
fn default() -> PrHttpAuthentication
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrHttpAuthentication
impl RefUnwindSafe for PrHttpAuthentication
impl Send for PrHttpAuthentication
impl Sync for PrHttpAuthentication
impl Unpin for PrHttpAuthentication
impl UnsafeUnpin for PrHttpAuthentication
impl UnwindSafe for PrHttpAuthentication
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