pub struct GitHubProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for GitHubProvider
impl Default for GitHubProvider
Source§impl GitProvider for GitHubProvider
impl GitProvider for GitHubProvider
Source§fn can_handle(&self, url: &str) -> bool
fn can_handle(&self, url: &str) -> bool
Check if this provider can handle the given URL Read more
Source§fn parse_url(&self, url: &str) -> Option<ParsedRepository>
fn parse_url(&self, url: &str) -> Option<ParsedRepository>
Parse a URL into repository information Read more
Source§fn build_download_urls(&self, parsed: &ParsedRepository) -> Vec<String>
fn build_download_urls(&self, parsed: &ParsedRepository) -> Vec<String>
Build download URLs for the parsed repository Read more
Source§fn get_default_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
parsed: &'life2 ParsedRepository,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_default_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
parsed: &'life2 ParsedRepository,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get the default branch for a repository (if supported) Read more
Source§fn apply_config(&mut self, config: &ProviderConfig)
fn apply_config(&mut self, config: &ProviderConfig)
Apply configuration to this provider Read more
Source§fn build_client(
&self,
config: &ProviderConfig,
) -> Result<Client, Box<dyn Error + Send + Sync>>
fn build_client( &self, config: &ProviderConfig, ) -> Result<Client, Box<dyn Error + Send + Sync>>
Build HTTP client with provider-specific configuration Read more
Source§fn add_auth_headers(
&self,
_headers: &mut HeaderMap,
_config: &ProviderConfig,
) -> Result<(), Box<dyn Error + Send + Sync>>
fn add_auth_headers( &self, _headers: &mut HeaderMap, _config: &ProviderConfig, ) -> Result<(), Box<dyn Error + Send + Sync>>
Add authentication headers specific to this provider Read more
Source§fn validate_config(&self, config: &ProviderConfig) -> Result<(), String>
fn validate_config(&self, config: &ProviderConfig) -> Result<(), String>
Validate configuration for this provider Read more
Auto Trait Implementations§
impl Freeze for GitHubProvider
impl RefUnwindSafe for GitHubProvider
impl Send for GitHubProvider
impl Sync for GitHubProvider
impl Unpin for GitHubProvider
impl UnsafeUnpin for GitHubProvider
impl UnwindSafe for GitHubProvider
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