pub struct ProgramConfig {
pub cache: bool,
pub profile: Option<CompilationProfile>,
}
Expand description
Program configuration.
JSON schema
{
"description": "Program configuration.",
"type": "object",
"properties": {
"cache": {
"description": "If `true` (default), when a prior compilation with the same checksum\nalready exists, the output of that (i.e., binary) is used.\nSet `false` to always trigger a new compilation, which might take longer\nand as well can result in overriding an existing binary.",
"default": true,
"type": "boolean"
},
"profile": {
"allOf": [
{
"$ref": "#/components/schemas/CompilationProfile"
}
]
}
}
}
Fields§
§cache: bool
If true
(default), when a prior compilation with the same checksum
already exists, the output of that (i.e., binary) is used.
Set false
to always trigger a new compilation, which might take longer
and as well can result in overriding an existing binary.
profile: Option<CompilationProfile>
Implementations§
Source§impl ProgramConfig
impl ProgramConfig
pub fn builder() -> ProgramConfig
Trait Implementations§
Source§impl Clone for ProgramConfig
impl Clone for ProgramConfig
Source§fn clone(&self) -> ProgramConfig
fn clone(&self) -> ProgramConfig
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 Debug for ProgramConfig
impl Debug for ProgramConfig
Source§impl<'de> Deserialize<'de> for ProgramConfig
impl<'de> Deserialize<'de> for ProgramConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ProgramConfig> for ProgramConfig
impl From<&ProgramConfig> for ProgramConfig
Source§fn from(value: &ProgramConfig) -> Self
fn from(value: &ProgramConfig) -> Self
Converts to this type from the input type.
Source§impl From<ProgramConfig> for ProgramConfig
impl From<ProgramConfig> for ProgramConfig
Source§fn from(value: ProgramConfig) -> Self
fn from(value: ProgramConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProgramConfig
impl Serialize for ProgramConfig
Source§impl TryFrom<ProgramConfig> for ProgramConfig
impl TryFrom<ProgramConfig> for ProgramConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProgramConfig) -> Result<Self, ConversionError>
fn try_from(value: ProgramConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProgramConfig
impl RefUnwindSafe for ProgramConfig
impl Send for ProgramConfig
impl Sync for ProgramConfig
impl Unpin for ProgramConfig
impl UnwindSafe for ProgramConfig
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