pub struct GitLabCommitProvider { /* private fields */ }Expand description
GitLab Commit 提供者,通过 glab api 查看提交信息。
§Examples
use gitflow_gitlab::GitLabCommitProvider;
let provider = GitLabCommitProvider::new("gitlab-org/gitlab");Implementations§
Trait Implementations§
Source§impl Clone for GitLabCommitProvider
impl Clone for GitLabCommitProvider
Source§fn clone(&self) -> GitLabCommitProvider
fn clone(&self) -> GitLabCommitProvider
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 GitLabCommitProvider
impl CommitProvider for GitLabCommitProvider
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 GitLabCommitProvider
impl RefUnwindSafe for GitLabCommitProvider
impl Send for GitLabCommitProvider
impl Sync for GitLabCommitProvider
impl Unpin for GitLabCommitProvider
impl UnsafeUnpin for GitLabCommitProvider
impl UnwindSafe for GitLabCommitProvider
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