pub struct AddKeyResultBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> AddKeyResultBuilder<S>
impl<S: State> AddKeyResultBuilder<S>
Sourcepub fn build(self) -> AddKeyResultwhere
S: IsComplete,
pub fn build(self) -> AddKeyResultwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn key(self, value: String) -> AddKeyResultBuilder<SetKey<S>>where
S::Key: IsUnset,
pub fn key(self, value: String) -> AddKeyResultBuilder<SetKey<S>>where
S::Key: IsUnset,
Required.
The key that was added to the ring.
Sourcepub fn hash(self, value: u64) -> AddKeyResultBuilder<SetHash<S>>where
S::Hash: IsUnset,
pub fn hash(self, value: u64) -> AddKeyResultBuilder<SetHash<S>>where
S::Hash: IsUnset,
Required.
The hash value of the key.
Sourcepub fn locations(
self,
value: Vec<AddKeyResultLocation>,
) -> AddKeyResultBuilder<SetLocations<S>>where
S::Locations: IsUnset,
pub fn locations(
self,
value: Vec<AddKeyResultLocation>,
) -> AddKeyResultBuilder<SetLocations<S>>where
S::Locations: IsUnset,
Sourcepub fn maybe_locations(
self,
value: Option<Vec<AddKeyResultLocation>>,
) -> AddKeyResultBuilder<SetLocations<S>>where
S::Locations: IsUnset,
pub fn maybe_locations(
self,
value: Option<Vec<AddKeyResultLocation>>,
) -> AddKeyResultBuilder<SetLocations<S>>where
S::Locations: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for AddKeyResultBuilder<S>
impl<S> RefUnwindSafe for AddKeyResultBuilder<S>
impl<S> Send for AddKeyResultBuilder<S>
impl<S> Sync for AddKeyResultBuilder<S>
impl<S> Unpin for AddKeyResultBuilder<S>
impl<S> UnwindSafe for AddKeyResultBuilder<S>
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