pub struct NewClientIdentity {
pub identify: Option<String>,
pub id_type: ClientIdentityType,
pub name: Option<String>,
}Expand description
POST /client-identities body.
Fields§
§identify: Option<String>The client’s IP address, required for Ip/None. Must be None for
Hostname/Path: Core generates those (see
ClientIdentityType::generates_identify).
id_type: ClientIdentityTypeHow Relay recognises the client. See
ops::infer_client_identity_type.
name: Option<String>Optional label, 1–64 characters; Core trims it.
Trait Implementations§
Source§impl Clone for NewClientIdentity
impl Clone for NewClientIdentity
Source§fn clone(&self) -> NewClientIdentity
fn clone(&self) -> NewClientIdentity
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 NewClientIdentity
impl Debug for NewClientIdentity
Auto Trait Implementations§
impl Freeze for NewClientIdentity
impl RefUnwindSafe for NewClientIdentity
impl Send for NewClientIdentity
impl Sync for NewClientIdentity
impl Unpin for NewClientIdentity
impl UnsafeUnpin for NewClientIdentity
impl UnwindSafe for NewClientIdentity
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