Skip to main content

CheckIn

Struct CheckIn 

Source
pub struct CheckIn {
Show 22 fields pub host: Option<String>, pub platform: Option<String>, pub process_id: Option<u32>, pub roles: Vec<String>, pub capacity: usize, pub running: usize, pub labels: BTreeMap<String, String>, pub operations: Vec<String>, pub handlers: Option<Vec<String>>, pub runnable_operations: Vec<String>, pub operation_lineage: Option<BTreeMap<String, Vec<String>>>, pub operation_names: BTreeMap<String, String>, pub source_facts: Option<PublishedSources>, pub issues_weakened: Vec<String>, pub peers_weakened: Vec<String>, pub bootstrap_weakened: Vec<String>, pub tls_weakened: Vec<String>, pub agents_weakened: Vec<String>, pub plugins_weakened: Vec<String>, pub assistant_weakened: Vec<String>, pub cables_weakened: Vec<String>, pub secrets_weakened: Vec<String>,
}
Expand description

The plain-data keys of a Station’s check-in. A key a Station leaves out reads as its default, and a key that does not read claims nothing, so an older or newer peer is understood as far as it goes.

Fields§

§host: Option<String>

The Station’s host name.

§platform: Option<String>

The operating system it runs on.

§process_id: Option<u32>

Its process ID.

§roles: Vec<String>

Its roles.

§capacity: usize

How many Missions it runs at once; 0 for a Station that runs none.

§running: usize

How many Runs it has running.

§labels: BTreeMap<String, String>

Its labels.

§operations: Vec<String>

The Operations whose checkout it has.

§handlers: Option<Vec<String>>

The AgentHandler providers it can run; absent when it did not report them.

§runnable_operations: Vec<String>

Every Operation it may place a Mission of, which is wider than operations.

§operation_lineage: Option<BTreeMap<String, Vec<String>>>

Every roster Operation’s ancestors, nearest first; absent when they did not fit the check-in’s budget.

§operation_names: BTreeMap<String, String>

The names Operations are called by.

§source_facts: Option<PublishedSources>

What the Source providers say of each instance; absent when it did not fit the check-in’s budget.

§issues_weakened: Vec<String>

Each Operation’s issue settings looser than the default, one line each.

§peers_weakened: Vec<String>

Peer-pairing settings looser than the strict defaults, one line each.

§bootstrap_weakened: Vec<String>

Bootstrap settings looser than the strict defaults, one line each.

§tls_weakened: Vec<String>

The Station’s TLS policy where it is looser than the default, one line each.

§agents_weakened: Vec<String>

Handler settings looser than the default, one line each.

§plugins_weakened: Vec<String>

What the plugin scan accepted that the strict profile refuses, one line each.

§assistant_weakened: Vec<String>

Moneypenny’s settings looser than the default, one line each.

§cables_weakened: Vec<String>

Cable relay settings looser than the default, one line each.

§secrets_weakened: Vec<String>

Sealing trust looser than the default, one line each.

Implementations§

Source§

impl CheckIn

Source

pub const KEYS: &'static [&'static str]

The plain-data field names shared with a Registry check-in.

Trait Implementations§

Source§

impl Clone for CheckIn

Source§

fn clone(&self) -> Self

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 Debug for CheckIn

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for CheckIn

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CheckIn

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl FromValue for CheckIn

Source§

const KINDS: Kinds = ::guatiao::Kinds::MAP

The kinds from_value may accept; any other is refused. Every impl in this crate and every derived one says; the default, [Kinds::ANY], claims every kind, which keeps a type that does not say out of an enum told apart by kind.
Source§

fn from_value(__value: &Value) -> Result<Self, MapError>

Performs the conversion. Read more
Source§

impl FromWalk for CheckIn

Source§

fn from_walk<__W: Walker>(__walker: __W) -> Result<Self, MapError>

Reads Self from the one value walker holds.
Source§

impl MapRead for CheckIn

Source§

fn read_map<__M: MapWalker>(__entries: __M) -> Result<Self, MapError>

Reads every entry.
Source§

impl PartialEq for CheckIn

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Schema for CheckIn

Source§

fn kind(__alloc: Alloc) -> KindBuilder

The kind describing values of this type.
§

fn schema_in(alloc: Alloc) -> Result<Value, ValueError>

The whole schema: the fields a consumer fills in, as a root document with its dialect declared. Read more
§

fn schema() -> Result<Value, ValueError>

The whole schema, built through the crate’s own allocator. See schema_in.
Source§

impl Serialize for CheckIn

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CheckIn

Source§

impl ToValue for CheckIn

Source§

fn to_value_in(&self, __alloc: Alloc) -> Result<Value, ValueError>

Performs the conversion through alloc. A derived struct produces a map.
§

fn to_value(&self) -> Result<Value, ValueError>

Performs the conversion through the crate’s own allocator.
Source§

impl Walk for CheckIn

Source§

fn walk<__V: Visitor>(&self, __visitor: __V) -> Result<__V::Ok, __V::Error>

Hands this value to visitor: one call for a scalar; for a list or a map, the call that opens it, then each element, then end.

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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> 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.