pub struct VexAssertion {
pub id: String,
pub repo: Option<RepoId>,
pub justification: Option<String>,
pub reason: String,
pub approved_by: String,
}Expand description
A validated [[settings.vex_assertion]] (§6, §7.2): approved_by + reason
non-empty and justification a known label, all enforced at parse (fail-closed).
Fields§
§id: String§repo: Option<RepoId>None = fleet-wide; else scoped to this repo id.
justification: Option<String>§reason: String§approved_by: StringTrait Implementations§
Source§impl Clone for VexAssertion
impl Clone for VexAssertion
Source§fn clone(&self) -> VexAssertion
fn clone(&self) -> VexAssertion
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 VexAssertion
impl RefUnwindSafe for VexAssertion
impl Send for VexAssertion
impl Sync for VexAssertion
impl Unpin for VexAssertion
impl UnsafeUnpin for VexAssertion
impl UnwindSafe for VexAssertion
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<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