pub struct PlannedOpencodeChange {
pub target_path: PathBuf,
pub will_change: bool,
pub comments_lost: bool,
}Expand description
Result of a dry-run over the OpenCode config.
Fields§
§target_path: PathBufThe file sqz would touch (exists or not).
will_change: boolTrue if writing is needed. False means the config is already in the desired shape.
comments_lost: boolTrue if the file is .jsonc with comments that would be
stripped during the serde_json round-trip.
Trait Implementations§
Source§impl Clone for PlannedOpencodeChange
impl Clone for PlannedOpencodeChange
Source§fn clone(&self) -> PlannedOpencodeChange
fn clone(&self) -> PlannedOpencodeChange
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 PlannedOpencodeChange
impl Debug for PlannedOpencodeChange
Source§impl PartialEq for PlannedOpencodeChange
impl PartialEq for PlannedOpencodeChange
Source§fn eq(&self, other: &PlannedOpencodeChange) -> bool
fn eq(&self, other: &PlannedOpencodeChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PlannedOpencodeChange
impl StructuralPartialEq for PlannedOpencodeChange
Auto Trait Implementations§
impl Freeze for PlannedOpencodeChange
impl RefUnwindSafe for PlannedOpencodeChange
impl Send for PlannedOpencodeChange
impl Sync for PlannedOpencodeChange
impl Unpin for PlannedOpencodeChange
impl UnsafeUnpin for PlannedOpencodeChange
impl UnwindSafe for PlannedOpencodeChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.