pub struct FieldPath { /* private fields */ }Expand description
A dot-joined path into a resource (e.g. position.x).
Implementations§
Source§impl FieldPath
impl FieldPath
Sourcepub fn from_segments(segments: Vec<String>) -> Self
pub fn from_segments(segments: Vec<String>) -> Self
Construct a field path from segments.
Sourcepub fn from_str(s: &str) -> Result<Self, SubjectError>
pub fn from_str(s: &str) -> Result<Self, SubjectError>
Parse a field path from a dot-joined string.
§Errors
Returns SubjectError::EmptySegment if any segment is empty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldPath
impl<'de> Deserialize<'de> for FieldPath
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 FieldPath
impl StructuralPartialEq for FieldPath
Auto Trait Implementations§
impl Freeze for FieldPath
impl RefUnwindSafe for FieldPath
impl Send for FieldPath
impl Sync for FieldPath
impl Unpin for FieldPath
impl UnsafeUnpin for FieldPath
impl UnwindSafe for FieldPath
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