pub struct GithubRepoProbe<'a> {
pub owner: &'a str,
pub repo: &'a str,
pub token: Option<&'a str>,
pub policy: &'a RetryPolicy,
pub deadline: Option<Instant>,
pub strict: bool,
}Expand description
One GitHub repo push-probe: the coordinates, the credential, the retry budget (attempt ladder plus the invocation’s wall-clock deadline) the probe must stay inside, and the strictness the outcome is graded under.
Bundled rather than passed loose because every preflight caller threads
the identical set through a base-resolving outer layer down to a
url-taking inner one, and each field is read by the outcome messages.
Fields§
§owner: &'a strRepository owner (user or org) as it appears in the API path.
repo: &'a strRepository name as it appears in the API path.
token: Option<&'a str>Bearer credential; None (or an empty string) probes unauthenticated.
policy: &'a RetryPolicyAttempt ladder for the retriable arms (5xx / transport failures).
deadline: Option<Instant>The invocation’s wall-clock budget; retries stop once it is spent.
strict: boolStrict preflight promotes every indeterminate outcome to a blocker.
Trait Implementations§
Source§impl<'a> Clone for GithubRepoProbe<'a>
impl<'a> Clone for GithubRepoProbe<'a>
Source§fn clone(&self) -> GithubRepoProbe<'a>
fn clone(&self) -> GithubRepoProbe<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more