pub struct JwtPick<'a> {
pub part: &'static str,
pub index: usize,
pub node: &'a Node,
pub path: String,
pub json: Option<([usize; 2], &'a str)>,
}Expand description
A JWT part picked by select_jwt, optionally narrowed to one JSON value
inside the header or payload.
Fields§
§part: &'static strheader, payload, signature (JWS) or header, encrypted_key,
iv, ciphertext, tag (JWE).
index: usizeThe part’s position in the token.
node: &'a NodeThe part’s base64url layer node.
path: StringThe JSON path within the part (empty when the whole part is picked).
json: Option<([usize; 2], &'a str)>The selected value’s byte range in the part’s decoded text, and that
text (validated JSON), when path is non-empty.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for JwtPick<'a>
impl<'a> Freeze for JwtPick<'a>
impl<'a> Move for JwtPick<'a>
impl<'a> RefUnwindSafe for JwtPick<'a>
impl<'a> Send for JwtPick<'a>
impl<'a> Sync for JwtPick<'a>
impl<'a> Unpin for JwtPick<'a>
impl<'a> UnsafeUnpin for JwtPick<'a>
impl<'a> UnwindSafe for JwtPick<'a>
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