pub struct TileDef {
pub name: String,
pub encoding: Option<String>,
pub options: TileOptions,
pub body_kind: TileBodyKind,
pub body: String,
pub pieces: Vec<TilePiece>,
pub span: Span,
}Expand description
A tile definition: its header, its raw body, and the parsed template.
Fields§
§name: StringThe tile’s name: the wire it binds.
encoding: Option<String>The declared encoding, such as json or csv, if any.
options: TileOptionsThe delimiter and strictness options.
body_kind: TileBodyKindHow the body was written: heredoc or string literal.
body: StringThe body text exactly as captured.
pieces: Vec<TilePiece>The body parsed into static runs, holes, projections, and branches.
span: SpanWhere the definition appears.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileDef
impl RefUnwindSafe for TileDef
impl Send for TileDef
impl Sync for TileDef
impl Unpin for TileDef
impl UnsafeUnpin for TileDef
impl UnwindSafe for TileDef
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