pub struct SpannedDocument {
pub include: Option<Vec<Spanned<String>>>,
pub program: Option<Spanned<Program>>,
pub children: Option<Vec<SpannedChild>>,
pub collections: Option<Vec<Spanned<Collection>>>,
pub environments: Option<Vec<Spanned<Environment>>>,
pub capabilities: Option<Vec<Spanned<SpannedCapability>>>,
pub use: Option<Vec<Spanned<SpannedUse>>>,
pub expose: Option<Vec<Spanned<SpannedExpose>>>,
pub offer: Option<Vec<Spanned<SpannedOffer>>>,
pub facets: Option<Spanned<IndexMap<String, Value>>>,
pub config: Option<Spanned<BTreeMap<ConfigKey, ConfigValueType>>>,
}Expand description
§Component manifest (.cml) reference
A .cml file contains a single spanned json5 object literal with the keys below.
Fields§
§include: Option<Vec<Spanned<String>>>§program: Option<Spanned<Program>>§children: Option<Vec<SpannedChild>>§collections: Option<Vec<Spanned<Collection>>>§environments: Option<Vec<Spanned<Environment>>>§capabilities: Option<Vec<Spanned<SpannedCapability>>>§use: Option<Vec<Spanned<SpannedUse>>>§expose: Option<Vec<Spanned<SpannedExpose>>>§offer: Option<Vec<Spanned<SpannedOffer>>>§facets: Option<Spanned<IndexMap<String, Value>>>§config: Option<Spanned<BTreeMap<ConfigKey, ConfigValueType>>>Trait Implementations§
Source§impl Debug for SpannedDocument
impl Debug for SpannedDocument
Source§impl Default for SpannedDocument
impl Default for SpannedDocument
Source§fn default() -> SpannedDocument
fn default() -> SpannedDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpannedDocument
impl<'de> Deserialize<'de> for SpannedDocument
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
Source§impl PartialEq for SpannedDocument
impl PartialEq for SpannedDocument
impl StructuralPartialEq for SpannedDocument
Auto Trait Implementations§
impl Freeze for SpannedDocument
impl RefUnwindSafe for SpannedDocument
impl Send for SpannedDocument
impl Sync for SpannedDocument
impl Unpin for SpannedDocument
impl UnwindSafe for SpannedDocument
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more