pub struct EnvRead {
pub name: String,
pub span_start: u32,
pub form: EnvReadForm,
}Expand description
One read of a non-public env var (process.env.X, import.meta.env.X).
Extraction records the read where it happens, so the client-server-leak
rule can report the line of the read and can tell whether the read is in
client code of a React Router route module. A public var
(is_public_env_var) is not recorded.
Fields§
§name: StringThe full read path, for example process.env.SESSION_SECRET.
span_start: u32The byte offset of the var name in the source: the property of a member read, or the key of a destructured property.
form: EnvReadFormThe syntax of the read.
Trait Implementations§
impl<'__de> Decode<'__de> for EnvReadwhere
'__de:,
Source§impl<'de> Deserialize<'de> for EnvRead
impl<'de> Deserialize<'de> for EnvRead
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 Encode for EnvRead
impl Eq for EnvRead
impl StructuralPartialEq for EnvRead
Auto Trait Implementations§
impl Forget for EnvRead
impl Freeze for EnvRead
impl Move for EnvRead
impl RefUnwindSafe for EnvRead
impl Send for EnvRead
impl Sync for EnvRead
impl Unpin for EnvRead
impl UnsafeUnpin for EnvRead
impl UnwindSafe for EnvRead
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.