Skip to main content

factory

Function factory 

Source
pub fn factory(
    cfg: &ReleaseSourceConfig,
    token: Option<SecretString>,
) -> Result<Arc<dyn ReleaseProvider>, ProviderError>
Expand description

Construct a BitbucketProvider.

§Errors

ProviderError::InvalidConfig for empty or http-prefixed hosts, missing workspace / repo_slug, or a reqwest build failure.