pub struct PullRequestProviderConfig {
pub provider: PullRequestProviderKind,
pub enabled: bool,
pub api_base_url: String,
pub api_base_url_allowlist: Vec<String>,
pub allow_loopback_http: bool,
pub auth_token: PrAuthToken,
pub basic_auth_username: Option<String>,
pub request_timeout_ms: u64,
pub max_output_bytes: usize,
pub max_items: usize,
pub max_pages: usize,
pub cache_ttl_seconds: u64,
}Expand description
Explicit provider configuration and hard request bounds.
Fields§
§provider: PullRequestProviderKindProvider contract selected for this client.
enabled: boolMaster opt-in switch. The default is false.
api_base_url: StringProvider API base URL.
api_base_url_allowlist: Vec<String>Exact allowed API base URLs.
allow_loopback_http: boolAllows plain HTTP only for loopback test servers.
auth_token: PrAuthTokenEphemeral bearer token, excluded from serialization and schemas.
basic_auth_username: Option<String>Ephemeral Atlassian account email for Bitbucket API-token Basic authentication.
request_timeout_ms: u64Per-request timeout in milliseconds.
max_output_bytes: usizeMaximum cumulative response bytes accepted by one inspection.
max_items: usizeMaximum changed files, checks, or reviews retained per collection.
max_pages: usizeMaximum pages fetched per paginated endpoint.
cache_ttl_seconds: u64Structured result cache lifetime in seconds.
Implementations§
Source§impl PullRequestProviderConfig
impl PullRequestProviderConfig
Sourcepub fn bitbucket_cloud() -> Self
pub fn bitbucket_cloud() -> Self
Returns a disabled Bitbucket Cloud configuration with the public endpoint allowlisted.
Sourcepub fn validate(&self) -> Result<(), PullRequestError>
pub fn validate(&self) -> Result<(), PullRequestError>
Validates URL policy and non-zero request bounds.
§Errors
Returns PullRequestError::InvalidConfiguration for an unsafe URL or empty bound.
Trait Implementations§
Source§impl Clone for PullRequestProviderConfig
impl Clone for PullRequestProviderConfig
Source§fn clone(&self) -> PullRequestProviderConfig
fn clone(&self) -> PullRequestProviderConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PullRequestProviderConfig
impl Debug for PullRequestProviderConfig
Source§impl Default for PullRequestProviderConfig
impl Default for PullRequestProviderConfig
Source§impl<'de> Deserialize<'de> for PullRequestProviderConfig
impl<'de> Deserialize<'de> for PullRequestProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PullRequestProviderConfig
impl JsonSchema for PullRequestProviderConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more