pub struct MistPackage {
pub name: String,
pub labels: Option<IndexMap<String, String>>,
}Expand description
Info about the package that it returns when queried about.
This contains a name and some optional labels.
Fields§
§name: StringName of the package.
labels: Option<IndexMap<String, String>>Package labels.
These can be whatever the package maintainer decides to attach, though
there are some labels with significance that Mistletoe can use to provide
additional information about the package to the end-user, notably
mistletoe.dev/group.
Trait Implementations§
Source§impl Clone for MistPackage
impl Clone for MistPackage
Source§fn clone(&self) -> MistPackage
fn clone(&self) -> MistPackage
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 MistPackage
impl Debug for MistPackage
Source§impl<'de> Deserialize<'de> for MistPackage
impl<'de> Deserialize<'de> for MistPackage
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 MistPackage
impl PartialEq for MistPackage
Source§impl Serialize for MistPackage
impl Serialize for MistPackage
impl StructuralPartialEq for MistPackage
Auto Trait Implementations§
impl Freeze for MistPackage
impl RefUnwindSafe for MistPackage
impl Send for MistPackage
impl Sync for MistPackage
impl Unpin for MistPackage
impl UnwindSafe for MistPackage
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