pub struct SyncApplyResponse {
pub results: Vec<SyncResourceResult>,
pub applied_sha: Option<String>,
pub summary: String,
}Expand description
Response for a real apply. Reports per-resource outcomes, the current commit SHA the sync was applied at (when known), and a short human-readable summary for CLI display.
NOTE: This is a breaking change from the previous dry-run-only
{ diff, message } shape. Clients inspecting the apply response directly
must be updated — callers that only consumed the HTTP status stay working.
Fields§
§results: Vec<SyncResourceResult>Per-resource reconcile results.
applied_sha: Option<String>Commit SHA the sync was applied against (when resolvable).
summary: StringAggregate summary suitable for CLI output, e.g.
"3 created, 2 updated, 1 deleted, 0 skipped".
Trait Implementations§
Source§impl Clone for SyncApplyResponse
impl Clone for SyncApplyResponse
Source§fn clone(&self) -> SyncApplyResponse
fn clone(&self) -> SyncApplyResponse
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 ComposeSchema for SyncApplyResponse
impl ComposeSchema for SyncApplyResponse
Source§impl Debug for SyncApplyResponse
impl Debug for SyncApplyResponse
Source§impl<'de> Deserialize<'de> for SyncApplyResponse
impl<'de> Deserialize<'de> for SyncApplyResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SyncApplyResponse
impl Serialize for SyncApplyResponse
Auto Trait Implementations§
impl Freeze for SyncApplyResponse
impl RefUnwindSafe for SyncApplyResponse
impl Send for SyncApplyResponse
impl Sync for SyncApplyResponse
impl Unpin for SyncApplyResponse
impl UnsafeUnpin for SyncApplyResponse
impl UnwindSafe for SyncApplyResponse
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