pub struct ManifestSnapshot {
pub project_id: ProjectId,
pub name: String,
pub bindings: Vec<ManifestBinding>,
}Expand description
In-memory snapshot of a project manifest.
A snapshot captures everything required to materialize a .env or inject
env vars into a child process: which keys the project exposes, where each
value comes from, and under which profile.
Fields§
§project_id: ProjectIdIdentifier of the owning crate::model::Project.
name: StringHuman-friendly project name (kept in the manifest for portability).
bindings: Vec<ManifestBinding>Variable bindings declared by the project, across all profiles.
Implementations§
Source§impl ManifestSnapshot
impl ManifestSnapshot
Sourcepub fn effective_bindings(&self, profile: &Profile) -> Vec<&ManifestBinding>
pub fn effective_bindings(&self, profile: &Profile) -> Vec<&ManifestBinding>
Filter the bindings to those that apply for the given profile.
Default-profile bindings are always included; named-profile bindings override default ones when they share a key.
Trait Implementations§
Source§impl Clone for ManifestSnapshot
impl Clone for ManifestSnapshot
Source§fn clone(&self) -> ManifestSnapshot
fn clone(&self) -> ManifestSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ManifestSnapshot
impl Debug for ManifestSnapshot
Source§impl<'de> Deserialize<'de> for ManifestSnapshot
impl<'de> Deserialize<'de> for ManifestSnapshot
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
Source§impl PartialEq for ManifestSnapshot
impl PartialEq for ManifestSnapshot
Source§fn eq(&self, other: &ManifestSnapshot) -> bool
fn eq(&self, other: &ManifestSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ManifestSnapshot
impl Serialize for ManifestSnapshot
impl Eq for ManifestSnapshot
impl StructuralPartialEq for ManifestSnapshot
Auto Trait Implementations§
impl Freeze for ManifestSnapshot
impl RefUnwindSafe for ManifestSnapshot
impl Send for ManifestSnapshot
impl Sync for ManifestSnapshot
impl Unpin for ManifestSnapshot
impl UnsafeUnpin for ManifestSnapshot
impl UnwindSafe for ManifestSnapshot
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