pub struct ParsedDocument {
pub children: Option<Spanned<Vec<Spanned<ParsedChild>>>>,
pub collections: Option<Spanned<Vec<Spanned<ParsedCollection>>>>,
pub capabilities: Option<Spanned<Vec<Spanned<ParsedCapability>>>>,
pub use: Option<Spanned<Vec<Spanned<ParsedUse>>>>,
pub expose: Option<Spanned<Vec<Spanned<ParsedExpose>>>>,
pub offer: Option<Spanned<Vec<Spanned<ParsedOffer>>>>,
}Expand description
§Component manifest (.cml) reference
A .cml file contains a single spanned json5 object literal with the keys below.
Fields§
§children: Option<Spanned<Vec<Spanned<ParsedChild>>>>§collections: Option<Spanned<Vec<Spanned<ParsedCollection>>>>§capabilities: Option<Spanned<Vec<Spanned<ParsedCapability>>>>§use: Option<Spanned<Vec<Spanned<ParsedUse>>>>§expose: Option<Spanned<Vec<Spanned<ParsedExpose>>>>§offer: Option<Spanned<Vec<Spanned<ParsedOffer>>>>Trait Implementations§
Source§impl Debug for ParsedDocument
impl Debug for ParsedDocument
Source§impl Default for ParsedDocument
impl Default for ParsedDocument
Source§fn default() -> ParsedDocument
fn default() -> ParsedDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParsedDocument
impl<'de> Deserialize<'de> for ParsedDocument
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 ParsedDocument
impl PartialEq for ParsedDocument
impl StructuralPartialEq for ParsedDocument
Auto Trait Implementations§
impl Freeze for ParsedDocument
impl RefUnwindSafe for ParsedDocument
impl Send for ParsedDocument
impl Sync for ParsedDocument
impl Unpin for ParsedDocument
impl UnwindSafe for ParsedDocument
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