pub struct HooqMeta {
pub line: usize,
pub column: usize,
pub path: &'static str,
pub file: &'static str,
pub source_str: &'static str,
pub count: &'static str,
pub bindings: HashMap<String, BindingPayload>,
}Expand description
Metadata about the invocation of the hooq macro.
You can use access this metadata via $hook_meta variable inside the macro body.
You also can use this metadata via hook flavor method.
Fields§
§line: usize§column: usize§path: &'static str§file: &'static str§source_str: &'static str§count: &'static str§bindings: HashMap<String, BindingPayload>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HooqMeta
impl !RefUnwindSafe for HooqMeta
impl !Send for HooqMeta
impl !Sync for HooqMeta
impl Unpin for HooqMeta
impl !UnwindSafe for HooqMeta
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