pub struct Decision {Show 15 fields
pub id: String,
pub title: String,
pub statement: String,
pub rationale: String,
pub status: Status,
pub supersedes: Vec<String>,
pub decided_by: String,
pub decided_at: String,
pub source_kind: Option<String>,
pub source_ref: Option<String>,
pub repos: Vec<String>,
pub paths: Vec<String>,
pub symbols: Vec<String>,
pub checks: Vec<Check>,
pub file: String,
/* private fields */
}Expand description
A validated decision record.
Fields§
§id: String§title: String§statement: String§rationale: String§status: Status§supersedes: Vec<String>§decided_by: String§decided_at: String§source_kind: Option<String>§source_ref: Option<String>§repos: Vec<String>§paths: Vec<String>§symbols: Vec<String>§checks: Vec<Check>§file: StringRecord file, relative to the project root (forward slashes).
Implementations§
Source§impl Decision
impl Decision
Sourcepub fn is_repo_wide(&self) -> bool
pub fn is_repo_wide(&self) -> bool
Repo-wide: no path and no symbol scope.
Sourcepub fn covers_path(&self, rel_path: &str) -> bool
pub fn covers_path(&self, rel_path: &str) -> bool
Whether rel_path (root-relative, forward slashes) is in path scope.
A symbol-only decision covers no path; a repo-wide one covers all.
Sourcepub fn covers_symbol(&self, symbol: &str) -> bool
pub fn covers_symbol(&self, symbol: &str) -> bool
Whether symbol (name or path::name) is in symbol scope.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Decision
impl Freeze for Decision
impl Move for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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