pub struct AuthManager { /* private fields */ }Expand description
Authentication manager for Jira API
Implementations§
Source§impl AuthManager
impl AuthManager
Sourcepub fn new(config: JiraConfig) -> Self
pub fn new(config: JiraConfig) -> Self
Create a new authentication manager
Sourcepub async fn get_auth_headers(&self) -> Result<HeaderMap>
pub async fn get_auth_headers(&self) -> Result<HeaderMap>
Get authorization headers for API requests
§Returns
Returns a HeaderMap with appropriate authentication headers
Sourcepub async fn refresh_token_if_needed(&self, client: &Client) -> Result<bool>
pub async fn refresh_token_if_needed(&self, client: &Client) -> Result<bool>
Sourcepub async fn get_base_url(&self) -> String
pub async fn get_base_url(&self) -> String
Get the base URL
Sourcepub async fn get_timeout(&self) -> Duration
pub async fn get_timeout(&self) -> Duration
Get timeout duration
Sourcepub async fn get_max_retries(&self) -> u32
pub async fn get_max_retries(&self) -> u32
Get max retries
Sourcepub async fn get_rate_limit(&self) -> u32
pub async fn get_rate_limit(&self) -> u32
Get rate limit
Trait Implementations§
Source§impl Clone for AuthManager
impl Clone for AuthManager
Source§fn clone(&self) -> AuthManager
fn clone(&self) -> AuthManager
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AuthManager
impl !UnwindSafe for AuthManager
impl Freeze for AuthManager
impl Send for AuthManager
impl Sync for AuthManager
impl Unpin for AuthManager
impl UnsafeUnpin for AuthManager
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