pub struct ToolchainStep {
pub toolchain: Vec<Toolchain>,
pub target: Option<Target>,
pub components: Vec<Component>,
pub cache: Option<bool>,
pub cache_directories: Vec<String>,
pub cache_workspaces: Vec<String>,
pub cache_on_failure: Option<bool>,
pub cache_key: Option<String>,
pub matcher: Option<bool>,
pub rust_flags: Option<RustFlags>,
pub override_default: Option<bool>,
}
Expand description
A Rust representation for the inputs of the setup-rust action. More information can be found here. NOTE: The public API should be close to the original action as much as possible.
Fields§
§toolchain: Vec<Toolchain>
§target: Option<Target>
§components: Vec<Component>
§cache: Option<bool>
§cache_directories: Vec<String>
§cache_workspaces: Vec<String>
§cache_on_failure: Option<bool>
§cache_key: Option<String>
§matcher: Option<bool>
§rust_flags: Option<RustFlags>
§override_default: Option<bool>
Implementations§
Source§impl ToolchainStep
impl ToolchainStep
Sourcepub fn components(self, value: Vec<Component>) -> Self
pub fn components(self, value: Vec<Component>) -> Self
Sets the components
field of this struct.
Sourcepub fn cache_directories(self, value: Vec<String>) -> Self
pub fn cache_directories(self, value: Vec<String>) -> Self
Sets the cache_directories
field of this struct.
Sourcepub fn cache_workspaces(self, value: Vec<String>) -> Self
pub fn cache_workspaces(self, value: Vec<String>) -> Self
Sets the cache_workspaces
field of this struct.
Sourcepub fn cache_on_failure(self, value: bool) -> Self
pub fn cache_on_failure(self, value: bool) -> Self
Sets the cache_on_failure
field of this struct.
Sourcepub fn rust_flags(self, value: RustFlags) -> Self
pub fn rust_flags(self, value: RustFlags) -> Self
Sets the rust_flags
field of this struct.
Sourcepub fn override_default(self, value: bool) -> Self
pub fn override_default(self, value: bool) -> Self
Sets the override_default
field of this struct.
Source§impl ToolchainStep
impl ToolchainStep
pub fn add_toolchain(self, version: Toolchain) -> Self
pub fn add_component(self, component: Component) -> Self
pub fn with_stable_toolchain(self) -> Self
pub fn with_nightly_toolchain(self) -> Self
pub fn with_clippy(self) -> Self
pub fn with_fmt(self) -> Self
pub fn target( self, arch: Arch, vendor: Vendor, system: System, abi: Option<Abi>, ) -> Self
Trait Implementations§
Source§impl Clone for ToolchainStep
impl Clone for ToolchainStep
Source§fn clone(&self) -> ToolchainStep
fn clone(&self) -> ToolchainStep
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ToolchainStep
impl Default for ToolchainStep
Source§fn default() -> ToolchainStep
fn default() -> ToolchainStep
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolchainStep
impl RefUnwindSafe for ToolchainStep
impl Send for ToolchainStep
impl Sync for ToolchainStep
impl Unpin for ToolchainStep
impl UnwindSafe for ToolchainStep
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)