pub struct Path {
pub segments: Vec<Name>,
}Fields§
§segments: Vec<Name>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Path
Reads a path from the canonical slash-separated string or the legacy array of legacy names.
impl<'de> Deserialize<'de> for Path
Reads a path from the canonical slash-separated string or the legacy array of legacy names.
Refusals carry a Diagnostic through DiagnosticError for the same reason
Name’s reader does: a code and a cursor have to survive serde’s Display-only error
channel, or the caller can only answer invalid_type. A segment that is not a name is
refused by Name’s own reader, whose error already carries its diagnostic.
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 Path
Source§impl From<ModuleName> for Path
impl From<ModuleName> for Path
Source§fn from(module: ModuleName) -> Self
fn from(module: ModuleName) -> Self
Converts to this type from the input type.
Source§impl From<PackageName> for Path
impl From<PackageName> for Path
Source§fn from(pkg: PackageName) -> Self
fn from(pkg: PackageName) -> Self
Converts to this type from the input type.
Source§impl From<Path> for ModuleName
impl From<Path> for ModuleName
Source§impl From<Path> for PackageName
impl From<Path> for PackageName
Source§impl JsonSchema for Path
impl JsonSchema for Path
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 moreimpl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.