pub struct PathElement {
pub index: Option<i64>,
pub key: Option<String>,
pub substring: Option<Substring>,
pub value: Option<String>,
}
Expand description
A single element in a path through the JSON representation of a policy.
Fields§
§index: Option<i64>
Refers to an index in a JSON array.
key: Option<String>
Refers to a key in a JSON object.
substring: Option<Substring>
Refers to a substring of a literal string in a JSON object.
value: Option<String>
Refers to the value associated with a given key in a JSON object.
Trait Implementations§
Source§impl Clone for PathElement
impl Clone for PathElement
Source§fn clone(&self) -> PathElement
fn clone(&self) -> PathElement
Returns a duplicate of the value. Read more
1.0.0 · 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 PathElement
impl Debug for PathElement
Source§impl Default for PathElement
impl Default for PathElement
Source§fn default() -> PathElement
fn default() -> PathElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PathElement
impl<'de> Deserialize<'de> for PathElement
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
Source§impl PartialEq for PathElement
impl PartialEq for PathElement
impl StructuralPartialEq for PathElement
Auto Trait Implementations§
impl Freeze for PathElement
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
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