Struct openrpc_types::SpecificationExtensions
source · pub struct SpecificationExtensions(pub BTreeMap<String, Value>);
Expand description
While the OpenRPC Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
The extensions properties are implemented as patterned fields that are always prefixed by “x-”.
The extensions may or may not be supported by the available tooling, but those may be extended as well to add requested support (if tools are internal or open-sourced).
Tuple Fields§
§0: BTreeMap<String, Value>
Trait Implementations§
source§impl Clone for SpecificationExtensions
impl Clone for SpecificationExtensions
source§fn clone(&self) -> SpecificationExtensions
fn clone(&self) -> SpecificationExtensions
Returns a copy of the value. Read more
1.0.0 · 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 SpecificationExtensions
impl Debug for SpecificationExtensions
source§impl Default for SpecificationExtensions
impl Default for SpecificationExtensions
source§fn default() -> SpecificationExtensions
fn default() -> SpecificationExtensions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SpecificationExtensions
impl<'de> Deserialize<'de> for SpecificationExtensions
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SpecificationExtensions
impl PartialEq for SpecificationExtensions
source§fn eq(&self, other: &SpecificationExtensions) -> bool
fn eq(&self, other: &SpecificationExtensions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SpecificationExtensions
impl Serialize for SpecificationExtensions
impl StructuralPartialEq for SpecificationExtensions
Auto Trait Implementations§
impl Freeze for SpecificationExtensions
impl RefUnwindSafe for SpecificationExtensions
impl Send for SpecificationExtensions
impl Sync for SpecificationExtensions
impl Unpin for SpecificationExtensions
impl UnwindSafe for SpecificationExtensions
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
)