pub struct HelpTopic {
pub name: String,
pub summary: String,
pub body: HelpTopicBody,
pub related_command_patterns: Vec<String>,
pub plugin_id: Option<u64>,
}Expand description
One free-form help topic.
Fields§
§name: String§summary: String§body: HelpTopicBodySubstring patterns matched against command names by
:describe-command. When any pattern is a substring of the
command name (case-sensitive), the describe view emits a
“See also” link to this topic.
plugin_id: Option<u64>CR.1: the host-issued plugin id that contributed this topic,
None for builtins. Provenance IS the teardown token — unload
is HelpTopicRegistry::unregister_plugin, so there is no
per-load list to record and therefore none to forget.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HelpTopic
impl !RefUnwindSafe for HelpTopic
impl !UnwindSafe for HelpTopic
impl Send for HelpTopic
impl Sync for HelpTopic
impl Unpin for HelpTopic
impl UnsafeUnpin for HelpTopic
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more