pub struct RustEvent {
pub tag: String,
pub rust_type: Option<String>,
pub file: String,
pub fields: Option<Vec<RustField>>,
pub from_enum: bool,
pub from_struct: bool,
}Expand description
One event type as the Rust source declares it.
Fields§
§tag: StringWire tag, e.g. TEXT_MESSAGE_START.
rust_type: Option<String>The Rust type carrying the payload, when there is one.
file: StringRepo-relative file the type was found in.
fields: Option<Vec<RustField>>Payload fields, excluding anything #[serde(flatten)]ed in. None when
only the enum variant was found and no payload type could be located.
from_enum: bool§from_struct: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for RustEvent
impl RefUnwindSafe for RustEvent
impl Send for RustEvent
impl Sync for RustEvent
impl Unpin for RustEvent
impl UnsafeUnpin for RustEvent
impl UnwindSafe for RustEvent
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