pub struct UpdateTarget {
pub description: Option<String>,
pub json: Option<bool>,
pub max_versions: Option<String>,
pub name: String,
pub new_comment: Option<String>,
pub new_name: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Fields§
§description: Option<String>Description of the object
json: Option<bool>Set output format to JSON
max_versions: Option<String>Set the maximum number of versions, limited by the account settings defaults.
name: StringTarget name
new_comment: Option<String>Deprecated - use description
new_name: Option<String>New target name
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl UpdateTarget
impl UpdateTarget
pub fn new(name: String) -> UpdateTarget
Trait Implementations§
Source§impl Clone for UpdateTarget
impl Clone for UpdateTarget
Source§fn clone(&self) -> UpdateTarget
fn clone(&self) -> UpdateTarget
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 UpdateTarget
impl Debug for UpdateTarget
Source§impl Default for UpdateTarget
impl Default for UpdateTarget
Source§fn default() -> UpdateTarget
fn default() -> UpdateTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateTarget
impl<'de> Deserialize<'de> for UpdateTarget
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 UpdateTarget
impl PartialEq for UpdateTarget
Source§fn eq(&self, other: &UpdateTarget) -> bool
fn eq(&self, other: &UpdateTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateTarget
impl Serialize for UpdateTarget
impl StructuralPartialEq for UpdateTarget
Auto Trait Implementations§
impl Freeze for UpdateTarget
impl RefUnwindSafe for UpdateTarget
impl Send for UpdateTarget
impl Sync for UpdateTarget
impl Unpin for UpdateTarget
impl UnsafeUnpin for UpdateTarget
impl UnwindSafe for UpdateTarget
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