pub struct EmittedMessage {
pub primary: String,
pub commons: Vec<(String, String)>,
}Expand description
The output of a single emitter run for one MessageSpec.
primary is the body of the main generated .rs file.
commons contains one entry per top-level commonStruct in the schema, and
each entry is (struct_name, file_body). For the current curated set,
commons is always empty, because DescribeGroups uses inline nested
structs rather than top-level commonStructs. This struct keeps the field so
that future schemas with real commonStructs need no further API change.
Fields§
§primary: String§commons: Vec<(String, String)>Auto Trait Implementations§
impl Freeze for EmittedMessage
impl RefUnwindSafe for EmittedMessage
impl Send for EmittedMessage
impl Sync for EmittedMessage
impl Unpin for EmittedMessage
impl UnsafeUnpin for EmittedMessage
impl UnwindSafe for EmittedMessage
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