#[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 ==
.