Struct openrpc_types::Server
source · pub struct Server {
pub name: String,
pub url: String,
pub summary: Option<String>,
pub description: Option<String>,
pub variables: Option<BTreeMap<String, ServerVariable>>,
pub extensions: SpecificationExtensions,
}
Expand description
An object representing a Server.
Fields§
§name: String
REQUIRED. A name to be used as the cannonical name for the server.
url: String
REQUIRED. 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 summary of what the server is.
description: Option<String>
An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation.
variables: Option<BTreeMap<String, ServerVariable>>
A map between a variable name and its value. The value is passed into the Runtime Expression to produce a server URL.
extensions: SpecificationExtensions
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
source§impl PartialEq for Server
impl PartialEq for Server
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)