Skip to main content

Inputs

Struct Inputs 

Source
pub struct Inputs<'a> {
Show 20 fields pub observation: &'a Observation, pub declaration: &'a Declaration, pub candidate: &'a BTreeMap<String, Sha256>, pub baseline: Option<&'a BTreeMap<String, Sha256>>, pub selector: String, pub release: String, pub release_sha256: Sha256, pub provenance: String, pub registry_checksum: Option<Sha256>, pub yanked: bool, pub compatibility: Option<&'a Compatibility>, pub interval: Option<&'a Interval>, pub briefing: Option<&'a Briefing>, pub proposed: Option<&'a [Operation]>, pub selections: &'a Selections, pub reserve: &'a [String], pub budget: &'a [Measurement], pub declared: Option<&'a str>, pub declarations_settled: bool, pub now: String,
}
Expand description

What the planner is given besides the observation.

Fields§

§observation: &'a Observation

What was observed at the target.

§declaration: &'a Declaration

What the destination release declares it lands.

§candidate: &'a BTreeMap<String, Sha256>

Each destination’s bytes in the destination release, by source path.

§baseline: Option<&'a BTreeMap<String, Sha256>>

Each destination’s bytes in the recorded release, where it could be read. Absent means the baseline was not observed.

§selector: String

What the caller asked for, before resolution.

§release: String

The release the selector resolved to.

§release_sha256: Sha256

The digest over that release’s content.

§provenance: String

Where the release’s facts came from.

§registry_checksum: Option<Sha256>

The registry checksum, where a registry served it.

§yanked: bool

Whether the registry marks the release yanked.

§compatibility: Option<&'a Compatibility>

What the destination release needs of this engine.

§interval: Option<&'a Interval>

The interval the plan crosses, for the compatibility check.

§briefing: Option<&'a Briefing>

What the interval’s releases ask of this target.

§proposed: Option<&'a [Operation]>

What one landing would write, where the caller computed it.

The installer owns that computation, so the planner takes its answer rather than deriving a second one that could disagree.

§selections: &'a Selections

What the operator selected.

§reserve: &'a [String]

Paths no delivered gate judges, as the caller reserved them.

§budget: &'a [Measurement]

What the budget gates measured at the target.

The gates decide pass or fail; the planner reports a number over a cap as debt a corpus arrived with. One measurement, so a finding and a ceiling can never disagree about what a budget is.

§declared: Option<&'a str>

The declarations a front carries, rendered for the fingerprint.

A front’s flags reach the record and no other operation, so a plan that recorded a different plan zone would otherwise share an id with one that did not.

§declarations_settled: bool

Whether the caller already settled the three declarations.

A front carries them as flags, and an omitted flag keeps whatever is recorded. So the questions are answered before the plan is computed, and asking them again would ask an operator to repeat something they already said.

§now: String

The clock, as an input.

Trait Implementations§

Source§

impl<'a> Clone for Inputs<'a>

Source§

fn clone(&self) -> Inputs<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Inputs<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Inputs<'a>

§

impl<'a> RefUnwindSafe for Inputs<'a>

§

impl<'a> Send for Inputs<'a>

§

impl<'a> Sync for Inputs<'a>

§

impl<'a> Unpin for Inputs<'a>

§

impl<'a> UnsafeUnpin for Inputs<'a>

§

impl<'a> UnwindSafe for Inputs<'a>

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more