pub struct ResourceReference {
pub uri: String,
/* private fields */
}
Expand description
A reference to a resource or resource template definition.
JSON schema
{
"description": "A reference to a resource or resource template definition.",
"type": "object",
"required": [
"type",
"uri"
],
"properties": {
"type": {
"type": "string",
"const": "ref/resource"
},
"uri": {
"description": "The URI or URI template of the resource.",
"type": "string",
"format": "uri-template"
}
}
}
Fields§
§uri: String
The URI or URI template of the resource.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceReference
impl Clone for ResourceReference
Source§fn clone(&self) -> ResourceReference
fn clone(&self) -> ResourceReference
Returns a copy 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 ResourceReference
impl Debug for ResourceReference
Source§impl<'de> Deserialize<'de> for ResourceReference
impl<'de> Deserialize<'de> for ResourceReference
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
Source§impl From<ResourceReference> for CompleteRequestParamsRef
impl From<ResourceReference> for CompleteRequestParamsRef
Source§fn from(value: ResourceReference) -> Self
fn from(value: ResourceReference) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResourceReference
impl RefUnwindSafe for ResourceReference
impl Send for ResourceReference
impl Sync for ResourceReference
impl Unpin for ResourceReference
impl UnwindSafe for ResourceReference
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