pub struct ClientIdentityPatch {
pub identify: Option<String>,
pub id_type: Option<ClientIdentityType>,
pub name: Option<Option<String>>,
pub enabled: Option<bool>,
}Expand description
PATCH /client-identities/:uuid body; None fields stay unchanged.
identify can be set only for Ip/None. Changing the type to Hostname/Path
makes Core generate a new identify; changing it back to Ip/None needs one. For a
new generated value without a type change, see
ClientIdentities::regenerate_identify.
Fields§
§identify: Option<String>New IP address (Ip/None only).
id_type: Option<ClientIdentityType>New type.
name: Option<Option<String>>Some(Some(name)) sets the label (1–64 characters), Some(None) removes it.
enabled: Option<bool>Turns the identity on or off on Relay (the owner’s switch).
Implementations§
Trait Implementations§
Source§impl Clone for ClientIdentityPatch
impl Clone for ClientIdentityPatch
Source§fn clone(&self) -> ClientIdentityPatch
fn clone(&self) -> ClientIdentityPatch
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 ClientIdentityPatch
impl Debug for ClientIdentityPatch
Source§impl Default for ClientIdentityPatch
impl Default for ClientIdentityPatch
Source§fn default() -> ClientIdentityPatch
fn default() -> ClientIdentityPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientIdentityPatch
impl RefUnwindSafe for ClientIdentityPatch
impl Send for ClientIdentityPatch
impl Sync for ClientIdentityPatch
impl Unpin for ClientIdentityPatch
impl UnsafeUnpin for ClientIdentityPatch
impl UnwindSafe for ClientIdentityPatch
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