pub struct CatalogEntry {
pub kind: CatalogKind,
pub name: String,
pub hash: Option<String>,
pub label: String,
pub description: String,
pub args: BTreeMap<String, String>,
pub examples: String,
pub source: CatalogSource,
pub signed_by: Option<String>,
}Expand description
A catalogue entry, keyed by (kind, name).
label is at most 120 bytes (it may be empty), description 1 to 1024 bytes; args maps
each argument’s name to its text; examples is a JSON array (kept in canonical form).
Fields§
§kind: CatalogKindClass, method or function.
name: StringThe full name (SPEC 2.3).
hash: Option<String>The function hash (a function) or the class hash (a class), when it has one.
label: StringA short human label.
description: StringWhat it does, in words.
args: BTreeMap<String, String>The text of each argument, by name.
examples: StringA JSON array of {call, expected} examples.
source: CatalogSourceWho published it.
signed_by: Option<String>The key reference of the signer, when signed.
Trait Implementations§
Source§impl Clone for CatalogEntry
impl Clone for CatalogEntry
Source§impl Debug for CatalogEntry
impl Debug for CatalogEntry
impl Eq for CatalogEntry
Source§impl PartialEq for CatalogEntry
impl PartialEq for CatalogEntry
impl StructuralPartialEq for CatalogEntry
Auto Trait Implementations§
impl Forget for CatalogEntry
impl Freeze for CatalogEntry
impl Move for CatalogEntry
impl RefUnwindSafe for CatalogEntry
impl Send for CatalogEntry
impl Sync for CatalogEntry
impl Unpin for CatalogEntry
impl UnsafeUnpin for CatalogEntry
impl UnwindSafe for CatalogEntry
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