pub struct GitHubVerifier { /* private fields */ }Expand description
GitHub verification service
Implementations§
Source§impl GitHubVerifier
impl GitHubVerifier
pub fn new(client: GitHubClient) -> Self
Sourcepub async fn verify_commit(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Result<CommitVerification>
pub async fn verify_commit( &self, owner: &str, repo: &str, sha: &str, ) -> Result<CommitVerification>
Verify a commit exists and get details
Sourcepub async fn verify_release(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Result<ReleaseVerification>
pub async fn verify_release( &self, owner: &str, repo: &str, tag: &str, ) -> Result<ReleaseVerification>
Verify a release exists
Sourcepub async fn verify_pr_merged(
&self,
owner: &str,
repo: &str,
pr_number: u64,
) -> Result<PrVerification>
pub async fn verify_pr_merged( &self, owner: &str, repo: &str, pr_number: u64, ) -> Result<PrVerification>
Verify a PR is merged
Sourcepub async fn verify_issue_closed(
&self,
owner: &str,
repo: &str,
issue_number: u64,
) -> Result<IssueVerification>
pub async fn verify_issue_closed( &self, owner: &str, repo: &str, issue_number: u64, ) -> Result<IssueVerification>
Verify an issue is closed
Sourcepub async fn verify_url(&self, url: &str) -> Result<GitHubVerificationResult>
pub async fn verify_url(&self, url: &str) -> Result<GitHubVerificationResult>
Parse a GitHub URL and verify the resource
Trait Implementations§
Source§impl Clone for GitHubVerifier
impl Clone for GitHubVerifier
Source§fn clone(&self) -> GitHubVerifier
fn clone(&self) -> GitHubVerifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GitHubVerifier
impl !RefUnwindSafe for GitHubVerifier
impl Send for GitHubVerifier
impl Sync for GitHubVerifier
impl Unpin for GitHubVerifier
impl !UnwindSafe for GitHubVerifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more