pub struct Toolchain {
pub toolchain: Vec<Version>,
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<Version>
§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 Toolchain
impl Toolchain
Sourcepub fn toolchain(self, value: impl Into<Vec<Version>>) -> Toolchain
pub fn toolchain(self, value: impl Into<Vec<Version>>) -> Toolchain
Sets the toolchain
field of this struct.
Sourcepub fn components(self, value: impl Into<Vec<Component>>) -> Toolchain
pub fn components(self, value: impl Into<Vec<Component>>) -> Toolchain
Sets the components
field of this struct.
Sourcepub fn cache_directories(self, value: impl Into<Vec<String>>) -> Toolchain
pub fn cache_directories(self, value: impl Into<Vec<String>>) -> Toolchain
Sets the cache_directories
field of this struct.
Sourcepub fn cache_workspaces(self, value: impl Into<Vec<String>>) -> Toolchain
pub fn cache_workspaces(self, value: impl Into<Vec<String>>) -> Toolchain
Sets the cache_workspaces
field of this struct.
Sourcepub fn cache_on_failure(self, value: impl Into<bool>) -> Toolchain
pub fn cache_on_failure(self, value: impl Into<bool>) -> Toolchain
Sets the cache_on_failure
field of this struct.
Sourcepub fn cache_key(self, value: impl Into<String>) -> Toolchain
pub fn cache_key(self, value: impl Into<String>) -> Toolchain
Sets the cache_key
field of this struct.
Sourcepub fn matcher(self, value: impl Into<bool>) -> Toolchain
pub fn matcher(self, value: impl Into<bool>) -> Toolchain
Sets the matcher
field of this struct.
Sourcepub fn rust_flags(self, value: impl Into<RustFlags>) -> Toolchain
pub fn rust_flags(self, value: impl Into<RustFlags>) -> Toolchain
Sets the rust_flags
field of this struct.
Sourcepub fn override_default(self, value: impl Into<bool>) -> Toolchain
pub fn override_default(self, value: impl Into<bool>) -> Toolchain
Sets the override_default
field of this struct.
Source§impl Toolchain
impl Toolchain
pub fn add_version(self, version: Version) -> Toolchain
pub fn add_component(self, component: Component) -> Toolchain
pub fn add_stable(self) -> Toolchain
pub fn add_nightly(self) -> Toolchain
pub fn add_clippy(self) -> Toolchain
pub fn add_fmt(self) -> Toolchain
pub fn target( self, arch: Arch, vendor: Vendor, system: System, abi: Option<Abi>, ) -> Toolchain
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Toolchain
impl RefUnwindSafe for Toolchain
impl Send for Toolchain
impl Sync for Toolchain
impl Unpin for Toolchain
impl UnwindSafe for Toolchain
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