#[non_exhaustive]pub enum PathFieldCommand {
FileName,
Path,
PathAndFileName,
Unknown(String),
}Expand description
Typed variant of the HWP5 %pat Command string (Wave 12n).
Observed forms are $F (file name only), $P (path only), and $P$F
(full path). Anything else is preserved as PathFieldCommand::Unknown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FileName
$F — file name only.
Path
$P — folder path only (no file name).
PathAndFileName
$P$F — full path including file name.
Unknown(String)
Any other Command form, preserved verbatim.
Implementations§
Source§impl PathFieldCommand
impl PathFieldCommand
Sourcepub fn wire_command(&self) -> &str
pub fn wire_command(&self) -> &str
Returns the canonical wire Command string for typed variants.
For Self::Unknown, returns the carried raw string.
Sourcepub fn from_wire(cmd: &str) -> Self
pub fn from_wire(cmd: &str) -> Self
Parses a wire Command string into a typed variant. Unknown forms
are preserved as Self::Unknown.
Trait Implementations§
Source§impl Clone for PathFieldCommand
impl Clone for PathFieldCommand
Source§fn clone(&self) -> PathFieldCommand
fn clone(&self) -> PathFieldCommand
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 PathFieldCommand
impl Debug for PathFieldCommand
Source§impl<'de> Deserialize<'de> for PathFieldCommand
impl<'de> Deserialize<'de> for PathFieldCommand
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
impl Eq for PathFieldCommand
Source§impl Hash for PathFieldCommand
impl Hash for PathFieldCommand
Source§impl JsonSchema for PathFieldCommand
impl JsonSchema for PathFieldCommand
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 PartialEq for PathFieldCommand
impl PartialEq for PathFieldCommand
Source§fn eq(&self, other: &PathFieldCommand) -> bool
fn eq(&self, other: &PathFieldCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PathFieldCommand
impl Serialize for PathFieldCommand
impl StructuralPartialEq for PathFieldCommand
Auto Trait Implementations§
impl Freeze for PathFieldCommand
impl RefUnwindSafe for PathFieldCommand
impl Send for PathFieldCommand
impl Sync for PathFieldCommand
impl Unpin for PathFieldCommand
impl UnsafeUnpin for PathFieldCommand
impl UnwindSafe for PathFieldCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.