pub struct Options {
pub veecle_os_runtime: Path,
pub veecle_os_data_support_can: Path,
pub arbitrary: Option<ArbitraryOptions>,
pub serde: Path,
pub message_frame_validations: Box<dyn Fn(&Ident) -> Option<Expr>>,
}
Expand description
Options to customize the generated code.
Fields§
§veecle_os_runtime: Path
A path to the veecle-os-runtime
crate, e.g. ::veecle_os_runtime
if it is a dependency of the crate the generated code
will be included in.
veecle_os_data_support_can: Path
A path to the veecle-os-data-support-can
crate, e.g. ::veecle_os_data_support_can
if it is a dependency of the crate
the generated code will be included in.
arbitrary: Option<ArbitraryOptions>
Whether and how to generate code integrating with arbitrary
serde: Path
A path to the serde
crate, e.g. ::serde
if it is a dependency of the crate the generated code will be
included in.
message_frame_validations: Box<dyn Fn(&Ident) -> Option<Expr>>
For each message name there can be an associated fn(&Frame) -> Result<()>
expression that
will be called to validate the frame during deserialization.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl !RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
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