pub struct ResourceEntry {
pub uri: &'static str,
pub name: &'static str,
pub title: &'static str,
pub description: &'static str,
pub mime_type: &'static str,
pub surface: Surface,
pub templated: bool,
/* private fields */
}Expand description
One resource: what it is called, what answers it, and which surface it needs to be there.
Fields§
§uri: &'static strThe fixed URI, or the template for the one that takes an identifier.
name: &'static str§title: &'static str§description: &'static str§mime_type: &'static str§surface: Surface§templated: booltrue for the one entry that is a template rather than a URI.
Implementations§
Source§impl ResourceEntry
impl ResourceEntry
Sourcepub fn describe_template(&self) -> ResourceTemplate
pub fn describe_template(&self) -> ResourceTemplate
The template as a client sees it in a template listing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResourceEntry
impl RefUnwindSafe for ResourceEntry
impl Send for ResourceEntry
impl Sync for ResourceEntry
impl Unpin for ResourceEntry
impl UnsafeUnpin for ResourceEntry
impl UnwindSafe for ResourceEntry
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