pub struct RestResource {
pub methods: HashMap<String, RestMethod>,
pub resources: HashMap<String, RestResource>,
}Expand description
A resource tree node: methods and nested sub-resources.
Fields§
§methods: HashMap<String, RestMethod>§resources: HashMap<String, RestResource>Trait Implementations§
Source§impl Clone for RestResource
impl Clone for RestResource
Source§fn clone(&self) -> RestResource
fn clone(&self) -> RestResource
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 RestResource
impl Debug for RestResource
Source§impl Default for RestResource
impl Default for RestResource
Source§fn default() -> RestResource
fn default() -> RestResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RestResource
impl<'de> Deserialize<'de> for RestResource
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 RestResource
impl RefUnwindSafe for RestResource
impl Send for RestResource
impl Sync for RestResource
impl Unpin for RestResource
impl UnsafeUnpin for RestResource
impl UnwindSafe for RestResource
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