#[non_exhaustive]pub struct RepositorySyncAttempt {
pub started_at: DateTime,
pub status: RepositorySyncStatus,
pub events: Vec<RepositorySyncEvent>,
}
Expand description
Information about a repository sync attempt for a repository with a sync configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.started_at: DateTime
The start time of a specific sync attempt.
status: RepositorySyncStatus
The status of a specific sync attempt. The following are valid statuses:
-
INITIATED - A repository sync attempt has been created and will begin soon.
-
IN_PROGRESS - A repository sync attempt has started and work is being done to reconcile the branch.
-
SUCCEEDED - The repository sync attempt has completed successfully.
-
FAILED - The repository sync attempt has failed.
-
QUEUED - The repository sync attempt didn't execute and was queued.
events: Vec<RepositorySyncEvent>
The events associated with a specific sync attempt.
Implementations§
source§impl RepositorySyncAttempt
impl RepositorySyncAttempt
sourcepub fn started_at(&self) -> &DateTime
pub fn started_at(&self) -> &DateTime
The start time of a specific sync attempt.
sourcepub fn status(&self) -> &RepositorySyncStatus
pub fn status(&self) -> &RepositorySyncStatus
The status of a specific sync attempt. The following are valid statuses:
-
INITIATED - A repository sync attempt has been created and will begin soon.
-
IN_PROGRESS - A repository sync attempt has started and work is being done to reconcile the branch.
-
SUCCEEDED - The repository sync attempt has completed successfully.
-
FAILED - The repository sync attempt has failed.
-
QUEUED - The repository sync attempt didn't execute and was queued.
sourcepub fn events(&self) -> &[RepositorySyncEvent]
pub fn events(&self) -> &[RepositorySyncEvent]
The events associated with a specific sync attempt.
source§impl RepositorySyncAttempt
impl RepositorySyncAttempt
sourcepub fn builder() -> RepositorySyncAttemptBuilder
pub fn builder() -> RepositorySyncAttemptBuilder
Creates a new builder-style object to manufacture RepositorySyncAttempt
.
Trait Implementations§
source§impl Clone for RepositorySyncAttempt
impl Clone for RepositorySyncAttempt
source§fn clone(&self) -> RepositorySyncAttempt
fn clone(&self) -> RepositorySyncAttempt
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RepositorySyncAttempt
impl Debug for RepositorySyncAttempt
source§impl PartialEq for RepositorySyncAttempt
impl PartialEq for RepositorySyncAttempt
source§fn eq(&self, other: &RepositorySyncAttempt) -> bool
fn eq(&self, other: &RepositorySyncAttempt) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RepositorySyncAttempt
Auto Trait Implementations§
impl Freeze for RepositorySyncAttempt
impl RefUnwindSafe for RepositorySyncAttempt
impl Send for RepositorySyncAttempt
impl Sync for RepositorySyncAttempt
impl Unpin for RepositorySyncAttempt
impl UnwindSafe for RepositorySyncAttempt
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
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>
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>
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