pub struct ScoreBodyBuilder { /* private fields */ }Expand description
Builder for constructing a ScoreBody with a fluent API.
Implementations§
Source§impl ScoreBodyBuilder
impl ScoreBodyBuilder
Sourcepub fn trace_id(self, id: impl Into<String>) -> ScoreBodyBuilder
pub fn trace_id(self, id: impl Into<String>) -> ScoreBodyBuilder
Set the trace ID.
Sourcepub fn observation_id(self, id: impl Into<String>) -> ScoreBodyBuilder
pub fn observation_id(self, id: impl Into<String>) -> ScoreBodyBuilder
Set the observation ID.
Sourcepub fn comment(self, c: impl Into<String>) -> ScoreBodyBuilder
pub fn comment(self, c: impl Into<String>) -> ScoreBodyBuilder
Set a comment.
Sourcepub fn metadata(self, m: Value) -> ScoreBodyBuilder
pub fn metadata(self, m: Value) -> ScoreBodyBuilder
Set metadata as a JSON value.
Sourcepub fn config_id(self, id: impl Into<String>) -> ScoreBodyBuilder
pub fn config_id(self, id: impl Into<String>) -> ScoreBodyBuilder
Set the score config ID.
Sourcepub fn data_type(self, dt: ScoreDataType) -> ScoreBodyBuilder
pub fn data_type(self, dt: ScoreDataType) -> ScoreBodyBuilder
Set the data type.
Auto Trait Implementations§
impl Freeze for ScoreBodyBuilder
impl RefUnwindSafe for ScoreBodyBuilder
impl Send for ScoreBodyBuilder
impl Sync for ScoreBodyBuilder
impl Unpin for ScoreBodyBuilder
impl UnsafeUnpin for ScoreBodyBuilder
impl UnwindSafe for ScoreBodyBuilder
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