Struct openrpc_types::Components
source · pub struct Components {
pub content_descriptors: Option<BTreeMap<String, ContentDescriptor>>,
pub schemas: Option<BTreeMap<String, Schema>>,
pub examples: Option<BTreeMap<String, Example>>,
pub errors: Option<BTreeMap<String, Error>>,
pub example_pairing_objects: Option<BTreeMap<String, ExamplePairing>>,
pub tags: Option<BTreeMap<String, Tag>>,
pub extensions: SpecificationExtensions,
}
Expand description
Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object. All the fixed fields declared above are objects that MUST use keys that match the regular expression: ^[a-zA-Z0-9.-_]+$
Fields§
§content_descriptors: Option<BTreeMap<String, ContentDescriptor>>
§schemas: Option<BTreeMap<String, Schema>>
§examples: Option<BTreeMap<String, Example>>
§errors: Option<BTreeMap<String, Error>>
§example_pairing_objects: Option<BTreeMap<String, ExamplePairing>>
§extensions: SpecificationExtensions
Trait Implementations§
source§impl Clone for Components
impl Clone for Components
source§fn clone(&self) -> Components
fn clone(&self) -> Components
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 Components
impl Debug for Components
source§impl Default for Components
impl Default for Components
source§fn default() -> Components
fn default() -> Components
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Components
impl<'de> Deserialize<'de> for Components
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 Components
impl PartialEq for Components
source§fn eq(&self, other: &Components) -> bool
fn eq(&self, other: &Components) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Components
impl Serialize for Components
impl StructuralPartialEq for Components
Auto Trait Implementations§
impl Freeze for Components
impl RefUnwindSafe for Components
impl Send for Components
impl Sync for Components
impl Unpin for Components
impl UnwindSafe for Components
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
)