Skip to main content

View

Enum View 

Source
pub enum View {
Show 15 variants Next { header: String, lists: Next, limit: Option<usize>, }, Matrix { header: String, placed: Vec<Placed>, limit: Option<usize>, quadrant: Option<Quadrant>, today: i64, }, Status { header: String, portfolio: Box<Portfolio>, explain: bool, }, Stale { header: String, placed: Vec<Placed>, limit: usize, }, Report { runs: Vec<Run>, attempts: Vec<Attempt>, by: By, }, Runs(Vec<Run>), Run { run: Box<Run>, attempts: Vec<Attempt>, changelog: Option<String>, diff: String, moved: bool, }, Agents { state: PathBuf, jobs: Vec<Job>, runs: Vec<Run>, now: i64, }, Jobs(Vec<Job>), JobLog { id: i64, text: Option<String>, }, Notes(Vec<Note>), Workflows { revisions: Vec<WorkflowRevision>, instances: Vec<WorkflowInstance>, }, Campaigns(Vec<Campaign>), Campaign { campaign: Campaign, runs: Vec<Run>, }, Project { name: String, path: PathBuf, scanned_at: Option<i64>, tags: Vec<String>, verify: Option<String>, status: Option<StatusLine>, placed: Vec<Placed>, today: i64, runs: Vec<Run>, },
}

Variants§

§

Next

Fields

§header: String
§lists: Next
§limit: Option<usize>
§

Matrix

Fields

§header: String
§placed: Vec<Placed>
§limit: Option<usize>
§quadrant: Option<Quadrant>
§today: i64
§

Status

Fields

§header: String
§portfolio: Box<Portfolio>
§explain: bool
§

Stale

Fields

§header: String
§placed: Vec<Placed>
§limit: usize
§

Report

Fields

§runs: Vec<Run>
§attempts: Vec<Attempt>
§by: By
§

Runs(Vec<Run>)

§

Run

Fields

§run: Box<Run>
§attempts: Vec<Attempt>
§changelog: Option<String>

None when the project keeps no CHANGELOG.md; empty when the agent drafted no entry.

§diff: String
§moved: bool

Set when the tree moved while it was read, so no approval may rest on what was shown.

§

Agents

Fields

§state: PathBuf
§jobs: Vec<Job>
§runs: Vec<Run>
§now: i64
§

Jobs(Vec<Job>)

§

JobLog

None until the job writes output.

Fields

§id: i64
§

Notes(Vec<Note>)

§

Workflows

Fields

§

Campaigns(Vec<Campaign>)

§

Campaign

Fields

§campaign: Campaign
§runs: Vec<Run>
§

Project

Fields

§name: String
§path: PathBuf
§scanned_at: Option<i64>

When a scan last read it; what the view shows is that old.

§tags: Vec<String>
§verify: Option<String>

The verify command set for it; None detects one at dispatch.

§status: Option<StatusLine>

Its states and status cells, as pma status shows them; None for a project no scan has found lately.

§placed: Vec<Placed>

Its open tasks, in matrix order.

§today: i64
§runs: Vec<Run>

Every run it has had, newest first.

Auto Trait Implementations§

§

impl Freeze for View

§

impl RefUnwindSafe for View

§

impl Send for View

§

impl Sync for View

§

impl Unpin for View

§

impl UnsafeUnpin for View

§

impl UnwindSafe for View

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.