pub struct ToolDownload {
pub platform: String,
pub sha256: Option<String>,
pub url: String,
}Expand description
A downloadable build of a tool.
JSON schema
{
"description": "A downloadable build of a tool.",
"type": "object",
"required": [
"platform",
"url"
],
"properties": {
"platform": {
"description": "`<os>-<arch>`, e.g. `linux-x86_64`.",
"type": "string"
},
"sha256": {
"description": "SHA-256 of the exact downloaded bytes, when supplied by the publisher.",
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
}
}Fields§
§platform: String<os>-<arch>, e.g. linux-x86_64.
sha256: Option<String>SHA-256 of the exact downloaded bytes, when supplied by the publisher.
url: StringImplementations§
Source§impl ToolDownload
impl ToolDownload
pub fn builder() -> ToolDownload
Trait Implementations§
Source§impl Clone for ToolDownload
impl Clone for ToolDownload
Source§impl Debug for ToolDownload
impl Debug for ToolDownload
Source§impl<'de> Deserialize<'de> for ToolDownload
impl<'de> Deserialize<'de> for ToolDownload
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<&ToolDownload> for ToolDownload
impl From<&ToolDownload> for ToolDownload
Source§fn from(value: &ToolDownload) -> Self
fn from(value: &ToolDownload) -> Self
Converts to this type from the input type.
Source§impl From<ToolDownload> for ToolDownload
impl From<ToolDownload> for ToolDownload
Source§fn from(value: ToolDownload) -> Self
fn from(value: ToolDownload) -> Self
Converts to this type from the input type.
Source§impl Serialize for ToolDownload
impl Serialize for ToolDownload
Source§impl TryFrom<ToolDownload> for ToolDownload
impl TryFrom<ToolDownload> for ToolDownload
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ToolDownload) -> Result<Self, ConversionError>
fn try_from(value: ToolDownload) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ToolDownload
impl Freeze for ToolDownload
impl Move for ToolDownload
impl RefUnwindSafe for ToolDownload
impl Send for ToolDownload
impl Sync for ToolDownload
impl Unpin for ToolDownload
impl UnsafeUnpin for ToolDownload
impl UnwindSafe for ToolDownload
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