pub struct NodeEndpointBuilder { /* private fields */ }
Expand description
Builder for NodeEndpoint
.
Implementations§
source§impl NodeEndpointBuilder
impl NodeEndpointBuilder
sourcepub fn host(&mut self, value: StrBytes) -> &mut Self
pub fn host(&mut self, value: StrBytes) -> &mut Self
The node’s hostname.
Supported API versions: 16
sourcepub fn rack(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn rack(&mut self, value: Option<StrBytes>) -> &mut Self
The rack of the node, or null if it has not been assigned to a rack.
Supported API versions: 16
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes> ) -> &mut Self
Other tagged fields
sourcepub fn build(&self) -> Result<NodeEndpoint, NodeEndpointBuilderError>
pub fn build(&self) -> Result<NodeEndpoint, NodeEndpointBuilderError>
Trait Implementations§
source§impl Clone for NodeEndpointBuilder
impl Clone for NodeEndpointBuilder
source§fn clone(&self) -> NodeEndpointBuilder
fn clone(&self) -> NodeEndpointBuilder
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 RefUnwindSafe for NodeEndpointBuilder
impl Send for NodeEndpointBuilder
impl Sync for NodeEndpointBuilder
impl Unpin for NodeEndpointBuilder
impl UnwindSafe for NodeEndpointBuilder
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