pub struct Solution {
pub id: SolutionId,
pub task: TaskId,
pub source_path: PathBuf,
pub source_sha256: String,
pub revision: u64,
pub created_at: SystemTime,
}Expand description
A recorded solution for a task.
source_path points at the editable file (the source of truth per
product-requirements.md §5); source_sha256 pins the byte string that
tests and submissions refer to, so preview/test/submit always agree on
the same content (ADR-0005 invariant 3).
Fields§
§id: SolutionIdSolution identifier.
task: TaskIdTask this solution targets.
source_path: PathBufPath to the editable source file.
source_sha256: StringLowercase hex SHA-256 of the source bytes at snapshot time.
revision: u64Local revision counter, bumped on each recorded snapshot.
created_at: SystemTimeWhen the snapshot was recorded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Solution
impl<'de> Deserialize<'de> for Solution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Solution
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl Forget for Solution
impl Freeze for Solution
impl Move for Solution
impl RefUnwindSafe for Solution
impl Send for Solutionwhere
RawVecInner: Send,
impl Sync for Solutionwhere
RawVecInner: Sync,
impl Unpin for Solution
impl UnsafeUnpin for Solution
impl UnwindSafe for Solutionwhere
RawVecInner: UnwindSafe,
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.