pub struct RuntimeToolVersion { /* private fields */ }Expand description
One declarative runtime tool version selected for a workspace.
Implementations§
Source§impl RuntimeToolVersion
impl RuntimeToolVersion
Sourcepub fn new(tool: RuntimeTool, version: String) -> Self
pub fn new(tool: RuntimeTool, version: String) -> Self
Sourcepub const fn tool(&self) -> RuntimeTool
pub const fn tool(&self) -> RuntimeTool
Sourcepub fn environment_variable(&self) -> RuntimeEnvironmentVariable
pub fn environment_variable(&self) -> RuntimeEnvironmentVariable
Convert this runtime tool into a Docker environment variable.
§Returns
Runtime entrypoint environment variable.
Trait Implementations§
Source§impl Clone for RuntimeToolVersion
impl Clone for RuntimeToolVersion
Source§fn clone(&self) -> RuntimeToolVersion
fn clone(&self) -> RuntimeToolVersion
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 RuntimeToolVersion
impl Debug for RuntimeToolVersion
impl Eq for RuntimeToolVersion
Source§impl PartialEq for RuntimeToolVersion
impl PartialEq for RuntimeToolVersion
Source§fn eq(&self, other: &RuntimeToolVersion) -> bool
fn eq(&self, other: &RuntimeToolVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeToolVersion
Auto Trait Implementations§
impl Freeze for RuntimeToolVersion
impl RefUnwindSafe for RuntimeToolVersion
impl Send for RuntimeToolVersion
impl Sync for RuntimeToolVersion
impl Unpin for RuntimeToolVersion
impl UnsafeUnpin for RuntimeToolVersion
impl UnwindSafe for RuntimeToolVersion
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§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.