pub struct FamilySpec {Show 16 fields
pub family: ApiFamily,
pub tag: &'static str,
pub pr_sigil: char,
pub parse_remote: fn(&str) -> Option<RemoteRef>,
pub owns_remote: fn(&Integration, &RemoteRef) -> bool,
pub pr_web_url: fn(web_root: &str, project: &str, number: u64) -> Option<String>,
pub pr_edit_url: fn(pr_web_url: &str) -> String,
pub new_pr_url: fn(web_root: &str, project: &str, source: &str, target: Option<&str>) -> Option<String>,
pub new_pr_form_url: fn(web_root: &str, form: &PullRequestForm<'_>) -> Option<String>,
pub issue_web_url: fn(web_root: &str, project: &str, reference: &str) -> Option<String>,
pub new_issue_url: fn(web_root: &str, project: &str, title: &str, body: &str, labels: &[String]) -> Option<String>,
pub branch_url: fn(web_root: &str, project: &str, branch: &str) -> Option<String>,
pub commit_url: fn(web_root: &str, project: &str, sha: &str) -> Option<String>,
pub checkout: fn(&PullRequestSummary) -> CheckoutSource,
pub token_page: fn(&Integration) -> Option<String>,
pub well_known: fn(host: &str) -> Option<IntegrationKind>,
}Expand description
Everything family-specific the app needs to know without a network call.
Fields§
§family: ApiFamily§tag: &'static strToolbar chip and list tag: GH GL AZ BB JI TR GT LN YT RM GR.
pr_sigil: charThe character before a pull request number: # or !.
parse_remote: fn(&str) -> Option<RemoteRef>Remote URL to instance root plus project path.
owns_remote: fn(&Integration, &RemoteRef) -> boolDoes integration answer questions about remote? Default: same
hostname. Azure DevOps compares the organization root as well.
pr_web_url: fn(web_root: &str, project: &str, number: u64) -> Option<String>§pr_edit_url: fn(pr_web_url: &str) -> String§new_pr_url: fn(web_root: &str, project: &str, source: &str, target: Option<&str>) -> Option<String>§new_pr_form_url: fn(web_root: &str, form: &PullRequestForm<'_>) -> Option<String>§issue_web_url: fn(web_root: &str, project: &str, reference: &str) -> Option<String>§new_issue_url: fn(web_root: &str, project: &str, title: &str, body: &str, labels: &[String]) -> Option<String>§branch_url: fn(web_root: &str, project: &str, branch: &str) -> Option<String>§commit_url: fn(web_root: &str, project: &str, sha: &str) -> Option<String>§checkout: fn(&PullRequestSummary) -> CheckoutSource§token_page: fn(&Integration) -> Option<String>The page that mints a token with the right scopes.
well_known: fn(host: &str) -> Option<IntegrationKind>The kind a lowercased web host identifies with no configuration.
Implementations§
Auto Trait Implementations§
impl Forget for FamilySpec
impl Freeze for FamilySpec
impl Move for FamilySpec
impl RefUnwindSafe for FamilySpec
impl Send for FamilySpec
impl Sync for FamilySpec
impl Unpin for FamilySpec
impl UnsafeUnpin for FamilySpec
impl UnwindSafe for FamilySpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more