#[non_exhaustive]pub struct ValidatedPath {
pub anchor_index: usize,
pub depth: usize,
}Expand description
The result of a successful certificate path validation.
Fields are pub for direct read access. #[non_exhaustive] prevents external
code from constructing ValidatedPath directly and from pattern-matching
exhaustively, preserving the ability to add fields in future minor versions
without a breaking change.
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.anchor_index: usizeIndex into the anchors slice of the trust anchor that terminated the path.
depth: usizeDepth of the validated chain (number of intermediates, excluding trust anchor).
Trait Implementations§
Source§impl Clone for ValidatedPath
impl Clone for ValidatedPath
Source§fn clone(&self) -> ValidatedPath
fn clone(&self) -> ValidatedPath
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 ValidatedPath
impl Debug for ValidatedPath
Source§impl PartialEq for ValidatedPath
impl PartialEq for ValidatedPath
impl Eq for ValidatedPath
impl StructuralPartialEq for ValidatedPath
Auto Trait Implementations§
impl Freeze for ValidatedPath
impl RefUnwindSafe for ValidatedPath
impl Send for ValidatedPath
impl Sync for ValidatedPath
impl Unpin for ValidatedPath
impl UnsafeUnpin for ValidatedPath
impl UnwindSafe for ValidatedPath
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