pub struct WriteOptionsBuilder { /* private fields */ }
Expand description
Builder for WriteOptions
.
Implementations§
Source§impl WriteOptionsBuilder
impl WriteOptionsBuilder
Sourcepub fn region(&mut self, value: String) -> &mut Self
pub fn region(&mut self, value: String) -> &mut Self
Providing a datacenter overwrites the region provided by the Config
Sourcepub fn namespace(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
Namespace is the target namespace for the write.
Sourcepub fn auth_token(&mut self, value: String) -> &mut Self
pub fn auth_token(&mut self, value: String) -> &mut Self
AuthToken is the secret ID of an ACL token
Sourcepub fn headers(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn headers(&mut self, value: HashMap<String, String>) -> &mut Self
Set HTTP headers on the query.
Sourcepub fn idempotency_token(&mut self, value: String) -> &mut Self
pub fn idempotency_token(&mut self, value: String) -> &mut Self
IdempotencyToken can be used to ensure the write is idempotent.
Sourcepub fn build(&self) -> Result<WriteOptions, WriteOptionsBuilderError>
pub fn build(&self) -> Result<WriteOptions, WriteOptionsBuilderError>
Trait Implementations§
Source§impl Clone for WriteOptionsBuilder
impl Clone for WriteOptionsBuilder
Source§fn clone(&self) -> WriteOptionsBuilder
fn clone(&self) -> WriteOptionsBuilder
Returns a duplicate 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 WriteOptionsBuilder
impl RefUnwindSafe for WriteOptionsBuilder
impl Send for WriteOptionsBuilder
impl Sync for WriteOptionsBuilder
impl Unpin for WriteOptionsBuilder
impl UnwindSafe for WriteOptionsBuilder
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