pub struct Ledger {
pub schema_version: u32,
pub prefix: String,
pub style: Style,
pub active: Option<String>,
pub queue: Vec<QueuedTask>,
pub archive: Vec<ArchivedTask>,
pub horizon: Vec<HorizonTask>,
}Expand description
One repository’s work queue.
Fields§
§schema_version: u32Ledger schema version, the one this qctl writes and accepts. Increment only with a coordinated schema and ledger migration.
prefix: StringStable id prefix for this repository. Never encodes priority.
style: StyleHow this ledger is written. A file that says nothing here gets the defaults, which are the shape qctl already wrote.
active: Option<String>The one task currently being executed, or null when work is intentionally paused.
queue: Vec<QueuedTask>Pending work in priority order. The order is the priority. Queue, archive, and horizon partition one globally unique, continuous id corpus.
archive: Vec<ArchivedTask>Completed or deliberately dropped work, newest first. Archived ids are never reused and remain part of the global task corpus.
horizon: Vec<HorizonTask>Mapped work that is not on the short-term queue: research, evaluations,
or deferred items without a start condition. File order is not priority,
active must never name a horizon id, and each id still belongs to the
same global task corpus.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ledger
impl<'de> Deserialize<'de> for Ledger
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>,
Source§impl JsonSchema for Ledger
impl JsonSchema for Ledger
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Validate for Ledger
impl Validate for Ledger
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Freeze for Ledger
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnsafeUnpin for Ledger
impl UnwindSafe for Ledger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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