pub struct GitLabProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for GitLabProvider
impl Default for GitLabProvider
Source§impl GitProvider for GitLabProvider
impl GitProvider for GitLabProvider
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 GitLabProvider
impl RefUnwindSafe for GitLabProvider
impl Send for GitLabProvider
impl Sync for GitLabProvider
impl Unpin for GitLabProvider
impl UnsafeUnpin for GitLabProvider
impl UnwindSafe for GitLabProvider
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