pub struct GitHubCommitProvider { /* private fields */ }Expand description
GitHub Commit 提供者,通过 gh api 查看提交信息。
§Examples
use gitflow_github::GitHubCommitProvider;
let provider = GitHubCommitProvider::new("octocat/hello-world");Implementations§
Trait Implementations§
Source§impl Clone for GitHubCommitProvider
impl Clone for GitHubCommitProvider
Source§fn clone(&self) -> GitHubCommitProvider
fn clone(&self) -> GitHubCommitProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommitProvider for GitHubCommitProvider
impl CommitProvider for GitHubCommitProvider
Source§fn view<'life0, 'life1, 'async_trait>(
&'life0 self,
sha: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommitDetail>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn view<'life0, 'life1, 'async_trait>(
&'life0 self,
sha: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommitDetail>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
View the details of a commit by SHA. Read more
Source§fn diff<'life0, 'life1, 'async_trait>(
&'life0 self,
sha: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn diff<'life0, 'life1, 'async_trait>(
&'life0 self,
sha: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve the unified diff for a commit by SHA. Read more
Source§fn patch<'life0, 'life1, 'async_trait>(
&'life0 self,
sha: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patch<'life0, 'life1, 'async_trait>(
&'life0 self,
sha: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve the raw patch content for a commit by SHA. Read more
Source§fn comment<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sha: &'life1 str,
body: &'life2 str,
path: &'life3 str,
line: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn comment<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sha: &'life1 str,
body: &'life2 str,
path: &'life3 str,
line: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Comment on a specific file line within a commit. Read more
Auto Trait Implementations§
impl Freeze for GitHubCommitProvider
impl RefUnwindSafe for GitHubCommitProvider
impl Send for GitHubCommitProvider
impl Sync for GitHubCommitProvider
impl Unpin for GitHubCommitProvider
impl UnsafeUnpin for GitHubCommitProvider
impl UnwindSafe for GitHubCommitProvider
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