#[non_exhaustive]pub struct Rewrite {
pub path: AuthoredPath,
pub kind: RewriteKind,
}Expand description
One v3 spelling the compat reader rewrote.
v3 and v4 are short human-readable spellings, not JSON:
- a policy flag is
key: value, and its v4 side lists the policies the reader wrote, such ascontinue_on_error: trueread ason_failure: continue, on_rejection: continue. A task’s two flags are read together, so each of its rewrites names the same policies (a flag beside a v4 policy is refused, not rewritten); - a function name is the bare name:
validateread asvalidation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: AuthoredPathThe v3 key’s authored path, such as tasks[0].continue_on_error
or tasks[0].function.name.
kind: RewriteKindWhat it was read as, in a form a host can apply.
Trait Implementations§
impl Eq for Rewrite
impl StructuralPartialEq for Rewrite
Auto Trait Implementations§
impl Freeze for Rewrite
impl RefUnwindSafe for Rewrite
impl Send for Rewrite
impl Sync for Rewrite
impl Unpin for Rewrite
impl UnsafeUnpin for Rewrite
impl UnwindSafe for Rewrite
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.