[−][src]Struct rustmann::EventBuilder
Riemann event data builder
Implementations
impl EventBuilder
[src]
pub fn new() -> Self
[src]
pub fn time(self, time: i64) -> Self
[src]
pub fn state<S: Into<String>>(self, state: S) -> Self
[src]
pub fn service<S: Into<String>>(self, service: S) -> Self
[src]
pub fn host<S: Into<String>>(self, host: S) -> Self
[src]
pub fn description<S: Into<String>>(self, description: S) -> Self
[src]
pub fn add_tag<S: Into<String>>(self, tag: S) -> Self
[src]
pub fn ttl(self, ttl: f32) -> Self
[src]
pub fn time_micros(self, time_micros: i64) -> Self
[src]
pub fn metric_sint64(self, metric_sint64: i64) -> Self
[src]
pub fn metric_d(self, metric_d: f64) -> Self
[src]
pub fn metric_f(self, metric_f: f32) -> Self
[src]
pub fn add_attribute<S: Into<String>>(self, key: S, value: Option<S>) -> Self
[src]
pub fn build(self) -> Event
[src]
Trait Implementations
impl Default for EventBuilder
[src]
pub fn default() -> EventBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventBuilder
[src]
impl Send for EventBuilder
[src]
impl Sync for EventBuilder
[src]
impl Unpin for EventBuilder
[src]
impl UnwindSafe for EventBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,