pub struct ResourceTemplate {
pub uri_template: String,
pub name: String,
pub description: Option<String>,
pub mime_type: Option<String>,
}
Expand description
Template for parameterized resources
Fieldsยง
ยงuri_template: String
URI template with parameter placeholders
name: String
Name of the resource template
description: Option<String>
Description of the resource template
mime_type: Option<String>
MIME type of resources created from this template
Trait Implementationsยง
Sourceยงimpl Clone for ResourceTemplate
impl Clone for ResourceTemplate
Sourceยงfn clone(&self) -> ResourceTemplate
fn clone(&self) -> ResourceTemplate
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 ResourceTemplate
impl Debug for ResourceTemplate
Sourceยงimpl PartialEq for ResourceTemplate
impl PartialEq for ResourceTemplate
impl StructuralPartialEq for ResourceTemplate
Auto Trait Implementationsยง
impl Freeze for ResourceTemplate
impl RefUnwindSafe for ResourceTemplate
impl Send for ResourceTemplate
impl Sync for ResourceTemplate
impl Unpin for ResourceTemplate
impl UnwindSafe for ResourceTemplate
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