pub struct EntryView<'a> {
pub categories: Vec<&'a str>,
pub project_ids: Vec<&'a str>,
pub project_names: Vec<String>,
pub tags: Vec<&'a str>,
pub environment: Option<&'a str>,
pub secret_type: Option<&'a str>,
}Expand description
The parts of a vault entry an expression can test.
Borrowed rather than owned: evaluation runs once per entry per request, and the source JSON already outlives it.
Fields§
§categories: Vec<&'a str>§project_ids: Vec<&'a str>§project_names: Vec<String>Display names for project_ids, so rules can be written against either.
environment: Option<&'a str>§secret_type: Option<&'a str>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EntryView<'a>
impl<'a> RefUnwindSafe for EntryView<'a>
impl<'a> Send for EntryView<'a>
impl<'a> Sync for EntryView<'a>
impl<'a> Unpin for EntryView<'a>
impl<'a> UnsafeUnpin for EntryView<'a>
impl<'a> UnwindSafe for EntryView<'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