pub struct SideLabels {
pub new_side: String,
pub old_side: String,
}Expand description
Human-readable labels for the two sides of a diff.
The diff engine itself is direction-neutral internally (old/new), but
callers know what those sides actually are — local project files, a
specific Azure environment, or another environment in --compare-env
mode. Renderers use these labels instead of temporal language (“was”/
“now”) so the output never implies a push- or pull-shaped direction that
isn’t actually happening.
Fields§
§new_side: StringLabel for the diff engine’s “new” side (typically local project files,
or the first-named environment in --compare-env mode).
old_side: StringLabel for the diff engine’s “old” side (typically the resolved Azure
environment, or the second-named environment in --compare-env mode).
Trait Implementations§
Source§impl Clone for SideLabels
impl Clone for SideLabels
Source§fn clone(&self) -> SideLabels
fn clone(&self) -> SideLabels
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 moreAuto Trait Implementations§
impl Freeze for SideLabels
impl RefUnwindSafe for SideLabels
impl Send for SideLabels
impl Sync for SideLabels
impl Unpin for SideLabels
impl UnsafeUnpin for SideLabels
impl UnwindSafe for SideLabels
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