pub struct Profile {
pub base_url: Option<String>,
pub email: Option<String>,
pub api_token: Option<String>,
pub workspace: Option<String>,
pub bitbucket_token_type: Option<String>,
pub opsgenie_api_key: Option<String>,
pub opsgenie_region: Option<String>,
pub bamboo_base_url: Option<String>,
pub bitbucket_remote: Option<String>,
}Expand description
Minimal representation of a profile. Values are optional to support partially configured setups (e.g., when storing tokens in encrypted credential files).
Fields§
§base_url: Option<String>§email: Option<String>§api_token: Option<String>§workspace: Option<String>Bitbucket workspace slug (optional, can be inferred from base_url).
bitbucket_token_type: Option<String>Bitbucket token authentication type: “basic” (default) or “bearer”. Bearer is used for repository/workspace/project access tokens.
opsgenie_api_key: Option<String>OpsGenie API key (optional, separate from Atlassian token).
opsgenie_region: Option<String>OpsGenie region: “us” or “eu” (defaults to “us”).
bamboo_base_url: Option<String>Bamboo base URL (optional, if different from main base_url).
bitbucket_remote: Option<String>Preferred git remote name for Bitbucket auto-detection (default: tries origin, then first Bitbucket remote).
Implementations§
Source§impl Profile
impl Profile
Sourcepub fn site_base_url(&self) -> Option<&str>
pub fn site_base_url(&self) -> Option<&str>
base_url as the site root, for building a Jira, Confluence or JSM client.
Callers that need to tell the two products apart must read base_url
itself: a trailing /wiki is the only hint a Confluence-only profile
gives, and this strips it.