pub struct ResourceLink {
pub uri: String,
pub name: Option<String>,
pub description: Option<String>,
pub mime_type: Option<String>,
pub size: Option<u64>,
pub annotations: Option<Annotations>,
pub meta: BTreeMap<String, Value>,
}Expand description
A resource_link content block. A pointer to an
external resource the consumer may or may not
dereference; the block is the metadata, not the
resource body.
Fields§
§uri: StringA URI for the resource. The schema says “any
URI scheme the editor recognises”; file:// is
the most common.
name: Option<String>Human-readable name.
description: Option<String>Human-readable description.
mime_type: Option<String>The MIME type, if known.
size: Option<u64>The size in bytes, if known.
annotations: Option<Annotations>Optional annotations.
meta: BTreeMap<String, Value>Per-implementation metadata.
Trait Implementations§
Source§impl Clone for ResourceLink
impl Clone for ResourceLink
Source§impl Debug for ResourceLink
impl Debug for ResourceLink
Source§impl<'de> Deserialize<'de> for ResourceLink
impl<'de> Deserialize<'de> for ResourceLink
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
impl Eq for ResourceLink
Source§impl PartialEq for ResourceLink
impl PartialEq for ResourceLink
Source§impl Serialize for ResourceLink
impl Serialize for ResourceLink
impl StructuralPartialEq for ResourceLink
Auto Trait Implementations§
impl Freeze for ResourceLink
impl RefUnwindSafe for ResourceLink
impl Send for ResourceLink
impl Sync for ResourceLink
impl Unpin for ResourceLink
impl UnsafeUnpin for ResourceLink
impl UnwindSafe for ResourceLink
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