pub struct ProjectVar {
pub project_id: ProjectId,
pub var_id: VarId,
pub alias: Option<String>,
pub profile: Profile,
}Expand description
Linkage record between a Project and a crate::model::Var.
Each link can optionally rename the variable in the project context
(alias) and is scoped to a Profile.
Fields§
§project_id: ProjectIdOwning project.
var_id: VarIdLinked variable in the central registry.
alias: Option<String>Optional rename: the project sees the variable under this name.
profile: ProfileProfile this link applies to (default, dev, prod, etc.).
Implementations§
Trait Implementations§
Source§impl Clone for ProjectVar
impl Clone for ProjectVar
Source§fn clone(&self) -> ProjectVar
fn clone(&self) -> ProjectVar
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 ProjectVar
impl Debug for ProjectVar
Source§impl<'de> Deserialize<'de> for ProjectVar
impl<'de> Deserialize<'de> for ProjectVar
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 ProjectVar
impl PartialEq for ProjectVar
Source§fn eq(&self, other: &ProjectVar) -> bool
fn eq(&self, other: &ProjectVar) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProjectVar
impl Serialize for ProjectVar
impl Eq for ProjectVar
impl StructuralPartialEq for ProjectVar
Auto Trait Implementations§
impl Freeze for ProjectVar
impl RefUnwindSafe for ProjectVar
impl Send for ProjectVar
impl Sync for ProjectVar
impl Unpin for ProjectVar
impl UnsafeUnpin for ProjectVar
impl UnwindSafe for ProjectVar
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