pub struct FieldPaths(/* private fields */);Expand description
Fields of a JSON document, as paths: field names joined by ., and [] after a field for
every item of the array it holds, or every value of the data-keyed map it holds, such as
number, lines[].quantity, or [].id for the items of an array at the top level. A path
takes in the whole value at its end. A field whose name holds ., [ or ] cannot be named.
Implementations§
Source§impl FieldPaths
impl FieldPaths
Sourcepub const fn from_static(paths: &'static [&'static str]) -> Self
pub const fn from_static(paths: &'static [&'static str]) -> Self
The fields at paths.
§Panics
When a path is empty, has an empty field name, a [ not followed by ], a ] alone, or a
field name right after []. In a const item that is a compile error of every build. In a
JsonRedaction constant it is a compile error of the build that decodes with the policy,
which cargo check does not report.
Trait Implementations§
Source§impl Clone for FieldPaths
impl Clone for FieldPaths
impl Copy for FieldPaths
Auto Trait Implementations§
impl Forget for FieldPaths
impl Freeze for FieldPaths
impl Move for FieldPaths
impl RefUnwindSafe for FieldPaths
impl Send for FieldPaths
impl Sync for FieldPaths
impl Unpin for FieldPaths
impl UnsafeUnpin for FieldPaths
impl UnwindSafe for FieldPaths
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.