pub struct EventBuilder { /* private fields */ }
Expand description
Builder for Event
.
Implementations§
Source§impl EventBuilder
impl EventBuilder
pub fn topic(&mut self, value: Topic) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
pub fn key(&mut self, value: String) -> &mut Self
pub fn filter_keys(&mut self, value: Vec<String>) -> &mut Self
pub fn index(&mut self, value: u64) -> &mut Self
pub fn payload(&mut self, value: HashMap<String, Value>) -> &mut Self
Trait Implementations§
Source§impl Clone for EventBuilder
impl Clone for EventBuilder
Source§fn clone(&self) -> EventBuilder
fn clone(&self) -> EventBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
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