#[non_exhaustive]pub struct AbsolutePath(pub PathBuf);Available on crate feature
unstable_protocol_v2 only.Expand description
An absolute filesystem path used by the protocol.
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: PathBufImplementations§
Source§impl AbsolutePath
impl AbsolutePath
Sourcepub fn new(path: impl Into<Self>) -> Self
pub fn new(path: impl Into<Self>) -> Self
Wraps a filesystem path as a typed AbsolutePath.
Sourcepub fn into_inner(self) -> PathBuf
pub fn into_inner(self) -> PathBuf
Returns the wrapped filesystem path.
Trait Implementations§
Source§impl AsRef<OsStr> for AbsolutePath
impl AsRef<OsStr> for AbsolutePath
Source§impl AsRef<Path> for AbsolutePath
impl AsRef<Path> for AbsolutePath
Source§impl Clone for AbsolutePath
impl Clone for AbsolutePath
Source§fn clone(&self) -> AbsolutePath
fn clone(&self) -> AbsolutePath
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 AbsolutePath
impl Debug for AbsolutePath
Source§impl<'de> Deserialize<'de> for AbsolutePath
impl<'de> Deserialize<'de> for AbsolutePath
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 AbsolutePath
Source§impl<__FromT0> From<__FromT0> for AbsolutePath
impl<__FromT0> From<__FromT0> for AbsolutePath
Source§impl Hash for AbsolutePath
impl Hash for AbsolutePath
Source§impl IntoMaybeUndefined<AbsolutePath> for PathBuf
impl IntoMaybeUndefined<AbsolutePath> for PathBuf
Source§fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
Converts this value into a three-state builder argument.
Source§impl IntoMaybeUndefined<AbsolutePath> for OsString
impl IntoMaybeUndefined<AbsolutePath> for OsString
Source§fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
Converts this value into a three-state builder argument.
Source§impl IntoMaybeUndefined<AbsolutePath> for String
impl IntoMaybeUndefined<AbsolutePath> for String
Source§fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
Converts this value into a three-state builder argument.
Source§impl IntoMaybeUndefined<AbsolutePath> for Box<Path>
impl IntoMaybeUndefined<AbsolutePath> for Box<Path>
Source§fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
Converts this value into a three-state builder argument.
Source§impl IntoMaybeUndefined<AbsolutePath> for Cow<'_, Path>
impl IntoMaybeUndefined<AbsolutePath> for Cow<'_, Path>
Source§fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
Converts this value into a three-state builder argument.
Source§impl<T: ?Sized + AsRef<OsStr>> IntoMaybeUndefined<AbsolutePath> for &T
impl<T: ?Sized + AsRef<OsStr>> IntoMaybeUndefined<AbsolutePath> for &T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
fn into_maybe_undefined(self) -> MaybeUndefined<AbsolutePath>
Converts this value into a three-state builder argument.
Source§impl IntoOption<AbsolutePath> for PathBuf
impl IntoOption<AbsolutePath> for PathBuf
Source§fn into_option(self) -> Option<AbsolutePath>
fn into_option(self) -> Option<AbsolutePath>
Converts this value into an optional builder argument.
Source§impl IntoOption<AbsolutePath> for OsString
impl IntoOption<AbsolutePath> for OsString
Source§fn into_option(self) -> Option<AbsolutePath>
fn into_option(self) -> Option<AbsolutePath>
Converts this value into an optional builder argument.
Source§impl IntoOption<AbsolutePath> for String
impl IntoOption<AbsolutePath> for String
Source§fn into_option(self) -> Option<AbsolutePath>
fn into_option(self) -> Option<AbsolutePath>
Converts this value into an optional builder argument.
Source§impl IntoOption<AbsolutePath> for Box<Path>
impl IntoOption<AbsolutePath> for Box<Path>
Source§fn into_option(self) -> Option<AbsolutePath>
fn into_option(self) -> Option<AbsolutePath>
Converts this value into an optional builder argument.
Source§impl IntoOption<AbsolutePath> for Cow<'_, Path>
impl IntoOption<AbsolutePath> for Cow<'_, Path>
Source§fn into_option(self) -> Option<AbsolutePath>
fn into_option(self) -> Option<AbsolutePath>
Converts this value into an optional builder argument.
Source§impl<T: ?Sized + AsRef<OsStr>> IntoOption<AbsolutePath> for &T
impl<T: ?Sized + AsRef<OsStr>> IntoOption<AbsolutePath> for &T
Source§fn into_option(self) -> Option<AbsolutePath>
fn into_option(self) -> Option<AbsolutePath>
Converts this value into an optional builder argument.
Source§impl JsonSchema for AbsolutePath
impl JsonSchema for AbsolutePath
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 AbsolutePath
impl PartialEq for AbsolutePath
Source§impl Serialize for AbsolutePath
impl Serialize for AbsolutePath
impl StructuralPartialEq for AbsolutePath
Auto Trait Implementations§
impl Freeze for AbsolutePath
impl RefUnwindSafe for AbsolutePath
impl Send for AbsolutePath
impl Sync for AbsolutePath
impl Unpin for AbsolutePath
impl UnsafeUnpin for AbsolutePath
impl UnwindSafe for AbsolutePath
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.