pub struct Server {
pub name: String,
pub url: RuntimeExpression,
pub summary: Option<String>,
pub description: Option<String>,
pub variables: BTreeMap<String, ServerVariable>,
}
Expand description
A server.
Fields§
§name: String
A name to be used as the cannonical name for the server.
url: RuntimeExpression
A URL to the target host.
This URL supports Server Variables and may be relative to indicate that the host location is relative to the location where the OpenRPC document is being served.
Server Variables are passed into the Runtime Expression to produce a server URL.
summary: Option<String>
A short description of what the server is.
description: Option<String>
Describes the host designated by the URL.
GitHub Flavored Markdown may be used for rich text presentation.
variables: BTreeMap<String, ServerVariable>
The values of this object are passed to the RuntimeExpression
to produce an actual
URL.
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
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin 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