Struct AllowList
struct AllowList {
public: Vec<PublicEntry>,
internal: Vec<String>,
opaque: Vec<(String, String)>,
}Expand description
env_public.toml, parsed.
Fields§
§public: Vec<PublicEntry>The published variables, in the order the file lists them — which is the order of the page, so the file is also the page’s outline.
internal: Vec<String>Names the code touches that are deliberately not published.
opaque: Vec<(String, String)>Files whose reads are dynamic, with the reason each is allowed to be.
Implementations§
§impl AllowList
impl AllowList
fn classified(&self) -> BTreeSet<&str>
fn classified(&self) -> BTreeSet<&str>
Every name it classifies.
fn check(&self, surface: &Surface) -> Result<(), Error>
fn check(&self, surface: &Surface) -> Result<(), Error>
D34’s rule, both ways round.
§Errors
Error::Unclassifiable for a variable the code touches and this file does
not classify, for an entry naming a variable the code no longer touches, for
a dynamic read in a file that is not listed as [[opaque]], and for an
[[opaque]] entry that matches no dynamic read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllowList
impl RefUnwindSafe for AllowList
impl Send for AllowList
impl Sync for AllowList
impl Unpin for AllowList
impl UnsafeUnpin for AllowList
impl UnwindSafe for AllowList
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more