pub struct Server {
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 auth_user_method: Option<String>,
pub auth_user_name: Option<String>,
pub config: Option<Value>,
pub environment: Option<Box<ServerEnvironment>>,
pub public: Option<bool>,
}Expand description
Server : Server represents a server configuration
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
auth_user_method: Option<String>The current API user login method
auth_user_name: Option<String>The current API user identifier
config: Option<Value>Server configuration map (refer to doc/server.md)
environment: Option<Box<ServerEnvironment>>§public: Option<bool>Whether the server is public-only (only public endpoints are implemented)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
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
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
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