pub enum ReferenceTargetType {
Document,
Manual,
Local,
External,
Email,
}Expand description
Kind of the original typed link, before any destination lookup.
Variants§
Document
Registered Markdown document reference.
Manual
Native manual reference, with or without a section.
Local
Same-document content identity or authored fragment.
External
External URI; no existence probing is implied.
Email address; no existence probing is implied.
Implementations§
Source§impl ReferenceTargetType
impl ReferenceTargetType
Sourcepub const fn of(target: &LinkTarget) -> ReferenceTargetType
pub const fn of(target: &LinkTarget) -> ReferenceTargetType
Classify without cloning or inspecting a target’s strings.
Trait Implementations§
Source§impl Clone for ReferenceTargetType
impl Clone for ReferenceTargetType
Source§fn clone(&self) -> ReferenceTargetType
fn clone(&self) -> ReferenceTargetType
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 moreimpl Copy for ReferenceTargetType
Source§impl Debug for ReferenceTargetType
impl Debug for ReferenceTargetType
Source§impl<'de> Deserialize<'de> for ReferenceTargetType
impl<'de> Deserialize<'de> for ReferenceTargetType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReferenceTargetType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReferenceTargetType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReferenceTargetType
Source§impl Hash for ReferenceTargetType
impl Hash for ReferenceTargetType
Source§impl JsonSchema for ReferenceTargetType
impl JsonSchema for ReferenceTargetType
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 ReferenceTargetType
impl Ord for ReferenceTargetType
Source§fn cmp(&self, other: &ReferenceTargetType) -> Ordering
fn cmp(&self, other: &ReferenceTargetType) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReferenceTargetType
impl PartialEq for ReferenceTargetType
Source§impl PartialOrd for ReferenceTargetType
impl PartialOrd for ReferenceTargetType
Source§impl Serialize for ReferenceTargetType
impl Serialize for ReferenceTargetType
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 ReferenceTargetType
Auto Trait Implementations§
impl Freeze for ReferenceTargetType
impl RefUnwindSafe for ReferenceTargetType
impl Send for ReferenceTargetType
impl Sync for ReferenceTargetType
impl Unpin for ReferenceTargetType
impl UnsafeUnpin for ReferenceTargetType
impl UnwindSafe for ReferenceTargetType
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