pub struct Outcome { /* private fields */ }Expand description
The files changed by one accepted execution, in deterministic logical-path order.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn written(&self) -> &[String]
pub fn written(&self) -> &[String]
Returns generated logical paths created or replaced by this execution.
Sourcepub fn removed(&self) -> &[String]
pub fn removed(&self) -> &[String]
Returns stale declared logical paths removed by this execution.
Sourcepub fn is_unchanged(&self) -> bool
pub fn is_unchanged(&self) -> bool
Reports whether no generated file was written and no stale file was removed.
Sourcepub fn base_schema(&self) -> Option<&[u8]>
pub fn base_schema(&self) -> Option<&[u8]>
Returns the pre-write checked-in generated/schema.json bytes, when present.
Sourcepub fn submitted_schema(&self) -> &[u8] ⓘ
pub fn submitted_schema(&self) -> &[u8] ⓘ
Returns the regenerated generated/schema.json bytes from the in-memory tree.
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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<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.