pub enum DocumentAddress {
Markdown {
path: String,
origin: MarkdownOrigin,
},
Manual {
name: String,
manual_section: String,
},
}Expand description
Stable selector for one discoverable document candidate.
Variants§
Markdown
A Markdown document registered in the document catalog.
Fields
§
origin: MarkdownOriginStorage namespace containing the relative path.
Manual
An installed native manual page.
Implementations§
Source§impl DocumentAddress
impl DocumentAddress
Sourcepub fn relative_path(&self) -> String
pub fn relative_path(&self) -> String
Stable path relative to its storage namespace.
Sourcepub fn catalog_path(&self) -> String
pub fn catalog_path(&self) -> String
Complete, unambiguous path in ManT’s unified document tree.
Trait Implementations§
Source§impl Clone for DocumentAddress
impl Clone for DocumentAddress
Source§fn clone(&self) -> DocumentAddress
fn clone(&self) -> DocumentAddress
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 DocumentAddress
impl Debug for DocumentAddress
Source§impl<'de> Deserialize<'de> for DocumentAddress
impl<'de> Deserialize<'de> for DocumentAddress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DocumentAddress
Source§impl JsonSchema for DocumentAddress
impl JsonSchema for DocumentAddress
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for DocumentAddress
impl Ord for DocumentAddress
Source§fn cmp(&self, other: &DocumentAddress) -> Ordering
fn cmp(&self, other: &DocumentAddress) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DocumentAddress
impl PartialEq for DocumentAddress
Source§impl PartialOrd for DocumentAddress
impl PartialOrd for DocumentAddress
Source§impl Serialize for DocumentAddress
impl Serialize for DocumentAddress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DocumentAddress
Auto Trait Implementations§
impl Freeze for DocumentAddress
impl RefUnwindSafe for DocumentAddress
impl Send for DocumentAddress
impl Sync for DocumentAddress
impl Unpin for DocumentAddress
impl UnsafeUnpin for DocumentAddress
impl UnwindSafe for DocumentAddress
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