pub struct JournalModel {
pub record: RecordModel,
pub root: Type,
}Expand description
A validated journal declaration, ready to emit.
PLAIN, for the reason every model in this crate has plain fields: the derive today and a manifest front end later reach the same emitter.
Fields§
§record: RecordModelThe canonical record this journal IS — the four columns of columns, parsed by the ordinary
record pass, so everything a declared record emits is emitted here too.
root: TypeThe chain root the journal is keyed by — the type root = "…" named, and the Root parameter
of the emitted JournalRow impl.
Implementations§
Source§impl JournalModel
impl JournalModel
Sourcepub fn emit(&self) -> TokenStream
pub fn emit(&self) -> TokenStream
The record’s own expansion, and the row contract over it.
Trait Implementations§
Source§impl Clone for JournalModel
impl Clone for JournalModel
Auto Trait Implementations§
impl !Send for JournalModel
impl !Sync for JournalModel
impl Freeze for JournalModel
impl RefUnwindSafe for JournalModel
impl Unpin for JournalModel
impl UnsafeUnpin for JournalModel
impl UnwindSafe for JournalModel
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