Struct komple_framework_utils::response::EventHelper
source · pub struct EventHelper { /* private fields */ }Implementations
sourceimpl EventHelper
impl EventHelper
pub fn new(event_name: impl Into<String>) -> EventHelper
pub fn check_add_attribute<T: ToString>(
&mut self,
check: &Option<T>,
key: &str,
value: impl Into<String>
) -> EventHelper
pub fn add_attribute(
self,
key: impl Into<String>,
value: impl Into<String>
) -> EventHelper
pub fn add_attributes(self, attributes: Vec<Attribute>) -> EventHelper
pub fn get(&self) -> Event
Auto Trait Implementations
impl RefUnwindSafe for EventHelper
impl Send for EventHelper
impl Sync for EventHelper
impl Unpin for EventHelper
impl UnwindSafe for EventHelper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more