pub struct PlatformEntry {
pub name: String,
pub kind: String,
pub domain: String,
pub api_base_url: String,
pub web_base_url: String,
pub client_id: Option<String>,
}Expand description
One platform entry. Mirrors the columns the platforms list
command surfaces.
Fields§
§name: StringShort identifier, e.g. “work-gitlab”, “ghe”, “forge”.
kind: StringImplementation kind. Drives which client we construct.
Accepted: gitlab, gitea, forgejo, codeberg,
github, github_enterprise, bitbucket,
bitbucket_data_center. Codeberg/Forgejo route through the
Gitea client.
domain: StringDomain matched against the remote URL host. e.g. “gitlab.empresa.com”, “ghe.work.io”. Without scheme.
api_base_url: StringAPI base URL. e.g. https://gitlab.empresa.com/api/v4 for
GitLab, https://ghe.work.io/api/v3 for GitHub Enterprise.
web_base_url: StringWeb base URL — what we show users and what OAuth flows hit.
e.g. https://gitlab.empresa.com.
client_id: Option<String>OAuth client_id override. When set, supersedes the bundled
client_id for OAuth flows against this instance.
Trait Implementations§
Source§impl Clone for PlatformEntry
impl Clone for PlatformEntry
Source§fn clone(&self) -> PlatformEntry
fn clone(&self) -> PlatformEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more