pub struct Resource {
pub uri: &'static str,
pub name: &'static str,
pub feature: Feature,
pub description: Option<String>,
pub looks: Looks,
}Expand description
A resource a module serves: data a host or model reads by URI. With
{name} variables in its URI it is a template, read at any URI that
matches.
Fields§
§uri: &'static str§name: &'static str§feature: Feature§description: Option<String>The variables type’s doc comment, for a template.
looks: LooksImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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