git_store/github_config
Types
pub type GitHubConfig {
GitHubConfig(
owner: String,
repo: String,
token: String,
base_url: String,
)
}
Constructors
-
GitHubConfig( owner: String, repo: String, token: String, base_url: String, )
Values
pub fn empty() -> GitHubConfig
Create an empty GitHubConfig (for testing or manual construction)
pub fn get_base_url(config: GitHubConfig) -> String
pub fn get_owner(config: GitHubConfig) -> String
pub fn get_repo(config: GitHubConfig) -> String
pub fn new(
owner: String,
repo: String,
token: String,
) -> GitHubConfig
Create a new GitHubConfig with default GitHub.com API base URL
pub fn new_enterprise(
owner: String,
repo: String,
token: String,
base_url: String,
) -> GitHubConfig
Create a new GitHubConfig for GitHub Enterprise with custom base URL