pub struct ServerUntrusted {
pub api_extensions: Option<Vec<String>>,
pub api_status: Option<String>,
pub api_version: Option<String>,
pub auth: Option<String>,
pub auth_methods: Option<Vec<String>>,
pub config: Option<Value>,
pub public: Option<bool>,
}Expand description
ServerUntrusted : ServerUntrusted represents a server configuration for an untrusted client
Fields§
§api_extensions: Option<Vec<String>>List of supported API extensions
api_status: Option<String>Support status of the current API (one of "devel", "stable" or "deprecated")
api_version: Option<String>API version number
auth: Option<String>Whether the client is trusted (one of "trusted" or "untrusted")
auth_methods: Option<Vec<String>>List of supported authentication methods
config: Option<Value>Server configuration map (refer to doc/server.md)
public: Option<bool>Whether the server is public-only (only public endpoints are implemented)
Implementations§
Source§impl ServerUntrusted
impl ServerUntrusted
Sourcepub fn new() -> ServerUntrusted
pub fn new() -> ServerUntrusted
ServerUntrusted represents a server configuration for an untrusted client
Trait Implementations§
Source§impl Clone for ServerUntrusted
impl Clone for ServerUntrusted
Source§fn clone(&self) -> ServerUntrusted
fn clone(&self) -> ServerUntrusted
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 ServerUntrusted
impl Debug for ServerUntrusted
Source§impl Default for ServerUntrusted
impl Default for ServerUntrusted
Source§fn default() -> ServerUntrusted
fn default() -> ServerUntrusted
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerUntrusted
impl<'de> Deserialize<'de> for ServerUntrusted
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 ServerUntrusted
impl PartialEq for ServerUntrusted
Source§fn eq(&self, other: &ServerUntrusted) -> bool
fn eq(&self, other: &ServerUntrusted) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServerUntrusted
impl Serialize for ServerUntrusted
impl StructuralPartialEq for ServerUntrusted
Auto Trait Implementations§
impl Freeze for ServerUntrusted
impl RefUnwindSafe for ServerUntrusted
impl Send for ServerUntrusted
impl Sync for ServerUntrusted
impl Unpin for ServerUntrusted
impl UnsafeUnpin for ServerUntrusted
impl UnwindSafe for ServerUntrusted
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