Skip to main content

Observation

Struct Observation 

Source
pub struct Observation {
Show 16 fields pub target: String, pub git: bool, pub tech: Option<String>, pub forge_name: Option<String>, pub repo: Option<String>, pub facts: RepositoryFacts, pub record: RecordRead, pub config: ConfigRead, pub files: BTreeMap<String, Vec<u8>>, pub hooks_defect: Option<String>, pub pin: Option<PinState>, pub unwired_managers: Vec<String>, pub generator: Option<GeneratorRead>, pub forge: ForgeRead, pub ledger: Ledger, pub refs: Refs,
}
Expand description

Everything observed, as data.

Fields§

§target: String

The target, as given.

§git: bool

Whether the target is a git repository.

§tech: Option<String>

The technology the version file names.

§forge_name: Option<String>

The forge the origin remote maps to.

§repo: Option<String>

The project path from the origin remote.

§facts: RepositoryFacts

The facts the verdict reads.

§record: RecordRead

The record.

§config: ConfigRead

The configuration.

§files: BTreeMap<String, Vec<u8>>

Every destination present, by path, as bytes: the whole file, or the marked block for the two block destinations.

§hooks_defect: Option<String>

The hook file’s defect, where it has one.

§pin: Option<PinState>

The pin the wired manager records.

§unwired_managers: Vec<String>

The managers whose file is present and names no release-kit.

§generator: Option<GeneratorRead>

The generator on the host, where the technology has one and the host was asked.

§forge: ForgeRead

The forge.

§ledger: Ledger

The ledger, stamped as each fact was read.

§refs: Refs

The ids the sections cite.

Trait Implementations§

Source§

impl Debug for Observation

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.