Struct balena_cdsl::dsl::schema::SchemaList
source · pub struct SchemaList { /* private fields */ }
Expand description
A first-class collection of NamedSchema
’s, has convenience methods exposed
Implementations§
source§impl SchemaList
impl SchemaList
pub fn is_empty(&self) -> bool
sourcepub fn all_as_map(&self) -> HashMap<&str, &Schema>
pub fn all_as_map(&self) -> HashMap<&str, &Schema>
schema name -> Schema
pub fn entries(&self) -> &Vec<NamedSchema> ⓘ
pub fn dependent_schemas(&self) -> Vec<&NamedSchema> ⓘ
pub fn independent_schemas(&self) -> Vec<&NamedSchema> ⓘ
sourcepub fn independent_as_map(&self) -> HashMap<&str, &Schema>
pub fn independent_as_map(&self) -> HashMap<&str, &Schema>
schema name -> Schema
sourcepub fn independent_schema_names(&self) -> Vec<&str> ⓘ
pub fn independent_schema_names(&self) -> Vec<&str> ⓘ
names of all schemas that do not depend on any other schema
pub fn required_schema_names(&self) -> Vec<&str> ⓘ
Trait Implementations§
source§impl Clone for SchemaList
impl Clone for SchemaList
source§fn clone(&self) -> SchemaList
fn clone(&self) -> SchemaList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemaList
impl Debug for SchemaList
source§impl<'a> From<&'a SchemaList> for UiObject<'a>
impl<'a> From<&'a SchemaList> for UiObject<'a>
source§fn from(list: &'a SchemaList) -> Self
fn from(list: &'a SchemaList) -> Self
Converts to this type from the input type.