pub struct Artifact {
pub id: u64,
pub revision: u64,
pub def: PathBuf,
pub text: String,
pub partof: Names,
pub parts: Names,
pub done: Done,
pub completed: f32,
pub tested: f32,
}Expand description
The Artifact type. This encapsulates REQ, SPC, and TST artifacts and contains space to link them #SPC-artifact
Fields§
§id: u64constant id for this instance
revision: u64revision id for edit functionality
def: PathBufpath of definition (.toml file)
text: Stringtext attr
partof: Namesexplicit and calculated partof attribute
parts: Namesparts is inverse of partof (calculated)
done: Donedone attribute, allows user to “define as done”
completed: f32completed ratio (calculated)
tested: f32tested ratio (calculated)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
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