pub struct ScalingEventBuilder { /* private fields */ }
Expand description
Builder for ScalingEvent
.
Implementations§
Source§impl ScalingEventBuilder
impl ScalingEventBuilder
pub fn count(&mut self, value: Option<i64>) -> &mut Self
pub fn previous_count(&mut self, value: i64) -> &mut Self
pub fn error(&mut self, value: bool) -> &mut Self
pub fn message(&mut self, value: String) -> &mut Self
pub fn meta(&mut self, value: HashMap<String, Value>) -> &mut Self
pub fn eval_id(&mut self, value: Option<String>) -> &mut Self
pub fn time(&mut self, value: u64) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
Sourcepub fn build(&self) -> Result<ScalingEvent, ScalingEventBuilderError>
pub fn build(&self) -> Result<ScalingEvent, ScalingEventBuilderError>
Trait Implementations§
Source§impl Clone for ScalingEventBuilder
impl Clone for ScalingEventBuilder
Source§fn clone(&self) -> ScalingEventBuilder
fn clone(&self) -> ScalingEventBuilder
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 ScalingEventBuilder
impl RefUnwindSafe for ScalingEventBuilder
impl Send for ScalingEventBuilder
impl Sync for ScalingEventBuilder
impl Unpin for ScalingEventBuilder
impl UnwindSafe for ScalingEventBuilder
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