pub struct Environment {
pub id: EnvironmentId,
pub workspace: WorkspaceId,
pub name: String,
pub draft: Draft,
pub vars: VarSet,
pub head: Option<u32>,
}Expand description
An environment of a workspace: its editable draft, the vars all its revisions see, and its latest revision.
Fields§
§id: EnvironmentIdIts id.
workspace: WorkspaceIdIts workspace.
name: StringIts name (the manifest’s env_name).
draft: DraftWhat the next revision will be.
vars: VarSetVars every revision of the environment sees.
head: Option<u32>The number of its latest revision, if it has one.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§impl Debug for Environment
impl Debug for Environment
impl Eq for Environment
Source§impl PartialEq for Environment
impl PartialEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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,
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.