pub struct WriteOptions {
pub region: Option<String>,
pub namespace: Option<String>,
pub auth_token: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub idempotency_token: Option<String>,
}Fields§
§region: Option<String>§namespace: Option<String>§auth_token: Option<String>§headers: Option<HashMap<String, String>>§idempotency_token: Option<String>Implementations§
Source§impl WriteOptions
impl WriteOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of WriteOptions with default values, so callers
don’t have to specify all fields.
pub fn with_region(self, region: String) -> Self
pub fn with_namespace(self, namespace: String) -> Self
pub fn with_auth_token(self, auth_token: String) -> Self
pub fn with_headers(self, headers: HashMap<String, String>) -> Self
pub fn with_idempotency_token(self, token: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
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