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