pub struct ResourceList {
pub resources: Vec<Resource>,
pub templates: Vec<ResourceTemplate>,
}Expand description
Snapshot of resources/list and resources/templates/list
produced by the registry.
Fields§
§resources: Vec<Resource>Concrete resources (e.g. deribit://currencies).
templates: Vec<ResourceTemplate>URI templates (e.g. deribit://book/{instrument}).
Trait Implementations§
Source§impl Clone for ResourceList
impl Clone for ResourceList
Source§fn clone(&self) -> ResourceList
fn clone(&self) -> ResourceList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceList
impl Debug for ResourceList
Source§impl Default for ResourceList
impl Default for ResourceList
Source§fn default() -> ResourceList
fn default() -> ResourceList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResourceList
impl RefUnwindSafe for ResourceList
impl Send for ResourceList
impl Sync for ResourceList
impl Unpin for ResourceList
impl UnsafeUnpin for ResourceList
impl UnwindSafe for ResourceList
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