pub struct Components {
pub content_descriptors: BTreeMap<String, ContentDescriptor>,
pub schemas: BTreeMap<String, Schema>,
pub examples: BTreeMap<String, ExampleObject>,
pub links: BTreeMap<String, Link>,
pub errors: BTreeMap<String, Error>,
pub example_pairings: BTreeMap<String, ExamplePairing>,
pub tags: BTreeMap<String, Tag>,
}
Expand description
Holds a set of reusable objects for different aspects of the OpenRPC document.
All objects defined within the Components
object will have no effect on the API
unless they are explicitely referenced from properties outside of the Components
object.
Fields§
§content_descriptors: BTreeMap<String, ContentDescriptor>
A list of reusable ContentDescriptor
s.
schemas: BTreeMap<String, Schema>
A list of reusable Schema
s.
examples: BTreeMap<String, ExampleObject>
A list of reusable ExampleObject
s.
links: BTreeMap<String, Link>
A list of reusable Link
s.
errors: BTreeMap<String, Error>
A list of reusable Error
s.
example_pairings: BTreeMap<String, ExamplePairing>
A list of reusable ExamplePairing
s.
A list of reusable Tag
s.
Trait Implementations§
Source§impl Clone for Components
impl Clone for Components
Source§fn clone(&self) -> Components
fn clone(&self) -> Components
Returns a duplicate 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<'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
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