pub struct ResourceLink {
pub icons: Option<Vec<RawIcon>>,
pub name: String,
pub title: Option<String>,
pub uri: AbsoluteUri,
pub description: Option<String>,
pub mime_type: Option<String>,
pub annotations: Option<Annotations>,
pub size: Option<JsonInteger>,
pub meta: Option<OpenMetadata>,
pub additional: BTreeMap<String, Value>,
}Expand description
A final resource_link content block.
Fields§
§icons: Option<Vec<RawIcon>>Optional sized icons for display.
name: StringRequired programmatic resource name.
title: Option<String>Optional user-facing resource title.
uri: AbsoluteUriExact resource identity.
description: Option<String>Optional description of the resource.
mime_type: Option<String>Optional MIME type declared for the resource.
annotations: Option<Annotations>Optional link annotations.
size: Option<JsonInteger>Optional raw size of the resource in bytes.
meta: Option<OpenMetadata>Preserved open metadata.
additional: BTreeMap<String, Value>Schema-allowed members retained without assigning them protocol meaning.
Trait Implementations§
Source§impl Clone for ResourceLink
impl Clone for ResourceLink
Source§fn clone(&self) -> ResourceLink
fn clone(&self) -> ResourceLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).