pub struct StoredSync {
pub id: String,
pub name: String,
pub project_id: Option<String>,
pub git_path: String,
pub auto_apply: bool,
pub delete_missing: bool,
pub last_applied_sha: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored sync resource (persistent record of a git-backed resource set).
A sync points at a directory within a project’s checkout that contains
ZLayer resource YAMLs. On diff/apply the directory is scanned, compared
against current API state, and reconciled.
Fields§
§id: StringUUID identifier.
name: StringDisplay name for this sync.
project_id: Option<String>Linked project id (the git checkout to scan).
git_path: StringPath within the project’s checkout to scan for resource YAMLs.
auto_apply: boolWhether the sync should automatically apply on pull.
delete_missing: boolWhether the sync apply should delete resources that are present on the
API but missing from the manifest directory. Defaults to false —
the safer behaviour, which skips deletes and only creates/updates.
last_applied_sha: Option<String>The commit SHA at which this sync was last applied.
created_at: DateTime<Utc>When the sync was created.
updated_at: DateTime<Utc>When the sync was last updated.
Implementations§
Trait Implementations§
Source§impl Clone for StoredSync
impl Clone for StoredSync
Source§fn clone(&self) -> StoredSync
fn clone(&self) -> StoredSync
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more