pub struct TargetMeta {
pub title: Option<String>,
pub description: Option<String>,
pub image_url: Option<CanonicalUrl>,
pub labels: BTreeMap<String, String>,
}Expand description
Mint-time snapshot of what the target is — supplied by the minter, never scraped (I-3). This is what unfurls render and what agents read before resolving.
Fields§
§title: Option<String>Short human/agent-readable title.
description: Option<String>One-paragraph description of the artifact.
image_url: Option<CanonicalUrl>Optional preview image for unfurl cards.
labels: BTreeMap<String, String>Public labels — mint-time only; mutable labels live on the manifest.
Trait Implementations§
Source§impl Clone for TargetMeta
impl Clone for TargetMeta
Source§fn clone(&self) -> TargetMeta
fn clone(&self) -> TargetMeta
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 TargetMeta
impl Debug for TargetMeta
Source§impl Default for TargetMeta
impl Default for TargetMeta
Source§fn default() -> TargetMeta
fn default() -> TargetMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetMeta
impl<'de> Deserialize<'de> for TargetMeta
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 TargetMeta
Source§impl PartialEq for TargetMeta
impl PartialEq for TargetMeta
Source§impl Serialize for TargetMeta
impl Serialize for TargetMeta
impl StructuralPartialEq for TargetMeta
Auto Trait Implementations§
impl Freeze for TargetMeta
impl RefUnwindSafe for TargetMeta
impl Send for TargetMeta
impl Sync for TargetMeta
impl Unpin for TargetMeta
impl UnsafeUnpin for TargetMeta
impl UnwindSafe for TargetMeta
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