pub struct Registry {
pub connections: BTreeMap<String, ConnectionDef>,
pub refused: BTreeMap<String, String>,
pub files: BTreeMap<String, String>,
}Expand description
A root’s connections (decision 174), from its current parse: what the agent renders by name for the root’s tasks.
Fields§
§connections: BTreeMap<String, ConnectionDef>The connections, by name.
refused: BTreeMap<String, String>Names that can’t be used, with why: defined in more than one file, or invalid.
files: BTreeMap<String, String>The file defining each connection, relative to the root: a test imports it.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn of(files: &[ParsedFile]) -> Self
pub fn of(files: &[ParsedFile]) -> Self
The registry of a root’s parsed files (in any order). A file that failed to import records none; one the master refused after it imported (a DAG of it invalid) keeps its connections: one bad DAG doesn’t fail the tasks of other files using them.
Sourcepub fn names(&self) -> impl Iterator<Item = &String>
pub fn names(&self) -> impl Iterator<Item = &String>
Every connection’s name, the refused ones’ after.
Sourcepub fn only(&self, names: &[String]) -> Self
pub fn only(&self, names: &[String]) -> Self
Only the connections named in names, and why those refused are: what one task
declares, sent with its assignment (the agent serves no other).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Registry
Source§impl JsonSchema for Registry
impl JsonSchema for Registry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Registry
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnsafeUnpin for Registry
impl UnwindSafe for Registry
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
Mutably borrows from an owned value. Read more