pub struct WriteOptions {
pub region: String,
pub namespace: String,
pub auth_token: String,
pub headers: HashMap<String, String>,
pub idempotency_token: String,
}
Expand description
WriteOptions are used to parametrize a write
This struct was generated based on the Go types of the official Nomad API.
Fields§
§region: String
Providing a datacenter overwrites the region provided by the Config
namespace: String
Namespace is the target namespace for the write.
auth_token: String
AuthToken is the secret ID of an ACL token
headers: HashMap<String, String>
Set HTTP headers on the query.
idempotency_token: String
IdempotencyToken can be used to ensure the write is idempotent.
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
Source§fn clone(&self) -> WriteOptions
fn clone(&self) -> WriteOptions
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 moreSource§impl Debug for WriteOptions
impl Debug for WriteOptions
Source§impl Default for WriteOptions
impl Default for WriteOptions
Source§fn default() -> WriteOptions
fn default() -> WriteOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WriteOptions
impl<'de> Deserialize<'de> for WriteOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WriteOptions
impl PartialEq for WriteOptions
Source§impl Serialize for WriteOptions
impl Serialize for WriteOptions
impl StructuralPartialEq for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin 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