pub struct AuthConfig {
pub jwt_expiration: Duration,
pub jwt_refresh_margin: Duration,
pub token_cache_ttl: Duration,
pub token_refresh_margin: Duration,
pub github_api_url: String,
pub user_agent: String,
}Expand description
Configuration for authentication behavior.
Fields§
§jwt_expiration: DurationJWT expiration duration (max 10 minutes per GitHub)
jwt_refresh_margin: DurationJWT refresh margin (refresh if expires in this window)
token_cache_ttl: DurationInstallation token cache TTL (refresh before GitHub’s 1-hour expiry)
token_refresh_margin: DurationInstallation token refresh margin (refresh if expires in this window)
github_api_url: StringGitHub API endpoint (for GitHub Enterprise support)
user_agent: StringUser agent for GitHub API requests
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthConfig
impl Debug for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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