pub struct GitCodeCommitProvider { /* private fields */ }Expand description
GitCode Commit 提供者,通过 gc api 查看提交信息。
§Examples
use gitflow_gitcode::GitCodeCommitProvider;
let provider = GitCodeCommitProvider::new("octocat/hello-world");Implementations§
Trait Implementations§
Source§impl Clone for GitCodeCommitProvider
impl Clone for GitCodeCommitProvider
Source§impl CommitProvider for GitCodeCommitProvider
impl CommitProvider for GitCodeCommitProvider
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 GitCodeCommitProvider
impl RefUnwindSafe for GitCodeCommitProvider
impl Send for GitCodeCommitProvider
impl Sync for GitCodeCommitProvider
impl Unpin for GitCodeCommitProvider
impl UnsafeUnpin for GitCodeCommitProvider
impl UnwindSafe for GitCodeCommitProvider
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