pub struct PushPreview {
pub rows: Vec<StatusRow>,
pub would_write: Vec<String>,
pub would_delete: Vec<String>,
}Expand description
The push blast radius (serde for 13-07’s envelope): the full
status plus the effective selection — what push would write and
what --delete would remove. This IS the confirmation gate’s
message ([render_push_preview]); there is no second preview
shape.
Fields§
§rows: Vec<StatusRow>The full status rows (all kinds — the agent sees the whole picture, including what push will NOT touch).
would_write: Vec<String>The members push would WRITE (the StatusKind::LocalEdit
rows, in status order).
would_delete: Vec<String>The members --delete would REMOVE gateway-side (the
[StatusKind::Deleted { local: true }] rows, in status
order). Empty without --delete.
Trait Implementations§
Source§impl Clone for PushPreview
impl Clone for PushPreview
Source§fn clone(&self) -> PushPreview
fn clone(&self) -> PushPreview
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 Debug for PushPreview
impl Debug for PushPreview
Auto Trait Implementations§
impl Freeze for PushPreview
impl RefUnwindSafe for PushPreview
impl Send for PushPreview
impl Sync for PushPreview
impl Unpin for PushPreview
impl UnsafeUnpin for PushPreview
impl UnwindSafe for PushPreview
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