pub struct ServerAccessRequest {
pub add: bool,
pub deny: bool,
pub list: bool,
pub read_only: bool,
pub write: bool,
pub user: Option<String>,
}Expand description
Request payload for server-access.
Fields§
§add: boolWhether the user should be added or updated.
deny: boolWhether the user should be denied and disconnected.
list: boolWhether the current ACL should be listed.
read_only: boolWhether the resulting entry should be read-only.
write: boolWhether the resulting entry should be read-write.
user: Option<String>The optional username argument.
Trait Implementations§
Source§impl Clone for ServerAccessRequest
impl Clone for ServerAccessRequest
Source§fn clone(&self) -> ServerAccessRequest
fn clone(&self) -> ServerAccessRequest
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 ServerAccessRequest
impl Debug for ServerAccessRequest
Source§impl<'de> Deserialize<'de> for ServerAccessRequest
impl<'de> Deserialize<'de> for ServerAccessRequest
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 ServerAccessRequest
impl PartialEq for ServerAccessRequest
Source§fn eq(&self, other: &ServerAccessRequest) -> bool
fn eq(&self, other: &ServerAccessRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServerAccessRequest
impl Serialize for ServerAccessRequest
impl Eq for ServerAccessRequest
impl StructuralPartialEq for ServerAccessRequest
Auto Trait Implementations§
impl Freeze for ServerAccessRequest
impl RefUnwindSafe for ServerAccessRequest
impl Send for ServerAccessRequest
impl Sync for ServerAccessRequest
impl Unpin for ServerAccessRequest
impl UnsafeUnpin for ServerAccessRequest
impl UnwindSafe for ServerAccessRequest
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