pub struct SetItemState {
pub desired_state: String,
pub json: Option<bool>,
pub name: String,
pub token: Option<String>,
pub uid_token: Option<String>,
pub version: Option<i32>,
}Fields§
§desired_state: StringDesired item state (Enabled, Disabled)
json: Option<bool>Set output format to JSON
name: StringCurrent item name
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
version: Option<i32>The specific version you want to update: 0=item level state (default) (relevant only for keys)
Implementations§
Source§impl SetItemState
impl SetItemState
pub fn new(desired_state: String, name: String) -> SetItemState
Trait Implementations§
Source§impl Clone for SetItemState
impl Clone for SetItemState
Source§fn clone(&self) -> SetItemState
fn clone(&self) -> SetItemState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetItemState
impl Debug for SetItemState
Source§impl Default for SetItemState
impl Default for SetItemState
Source§fn default() -> SetItemState
fn default() -> SetItemState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetItemState
impl<'de> Deserialize<'de> for SetItemState
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 SetItemState
impl PartialEq for SetItemState
Source§fn eq(&self, other: &SetItemState) -> bool
fn eq(&self, other: &SetItemState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SetItemState
impl Serialize for SetItemState
impl StructuralPartialEq for SetItemState
Auto Trait Implementations§
impl Freeze for SetItemState
impl RefUnwindSafe for SetItemState
impl Send for SetItemState
impl Sync for SetItemState
impl Unpin for SetItemState
impl UnsafeUnpin for SetItemState
impl UnwindSafe for SetItemState
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