pub struct PatchCheck<'a> {
pub patch: &'a PolicyPatch,
pub expected_revision: &'a str,
}Expand description
What: The validation input: the proposed patch and the exact candidate blob it must base on. Why: One object keeps the check’s two inputs named at every call site.
In TS you’d write (pseudocode):
type PatchCheck = { patch: PolicyPatch; expectedRevision: string };Fields§
§patch: &'a PolicyPatchPolicy patch under check.
expected_revision: &'a strExact candidate blob revision the patch’s index line names as its base.
Auto Trait Implementations§
impl<'a> Freeze for PatchCheck<'a>
impl<'a> RefUnwindSafe for PatchCheck<'a>
impl<'a> Send for PatchCheck<'a>
impl<'a> Sync for PatchCheck<'a>
impl<'a> Unpin for PatchCheck<'a>
impl<'a> UnsafeUnpin for PatchCheck<'a>
impl<'a> UnwindSafe for PatchCheck<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more