pub struct NodeMetaResponseBuilder { /* private fields */ }
Expand description
Builder for NodeMetaResponse
.
Implementations§
Source§impl NodeMetaResponseBuilder
impl NodeMetaResponseBuilder
Sourcepub fn dynamic(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn dynamic(&mut self, value: HashMap<String, String>) -> &mut Self
Dynamic is the dynamic Node metadata (set via API)
Sourcepub fn static(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn static(&mut self, value: HashMap<String, String>) -> &mut Self
Static is the static Node metadata (set via agent configuration)
Sourcepub fn meta(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn meta(&mut self, value: HashMap<String, String>) -> &mut Self
Meta is the merged static + dynamic Node metadata
Sourcepub fn build(&self) -> Result<NodeMetaResponse, NodeMetaResponseBuilderError>
pub fn build(&self) -> Result<NodeMetaResponse, NodeMetaResponseBuilderError>
Trait Implementations§
Source§impl Clone for NodeMetaResponseBuilder
impl Clone for NodeMetaResponseBuilder
Source§fn clone(&self) -> NodeMetaResponseBuilder
fn clone(&self) -> NodeMetaResponseBuilder
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 NodeMetaResponseBuilder
impl RefUnwindSafe for NodeMetaResponseBuilder
impl Send for NodeMetaResponseBuilder
impl Sync for NodeMetaResponseBuilder
impl Unpin for NodeMetaResponseBuilder
impl UnwindSafe for NodeMetaResponseBuilder
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