pub struct GetLatestAssetResponse {
pub download_url: String,
pub min_runtime_version: Option<String>,
pub platform: Option<String>,
pub platforms: Map<String, Value>,
pub sha256: Option<String>,
pub size: Option<f64>,
pub version: String,
}Expand description
GetLatestAssetResponse
JSON schema
{
"type": "object",
"required": [
"download_url",
"min_runtime_version",
"platform",
"platforms",
"version"
],
"properties": {
"download_url": {
"type": "string"
},
"min_runtime_version": {
"type": [
"string",
"null"
]
},
"platform": {
"type": [
"string",
"null"
]
},
"platforms": {
"type": "object"
},
"sha256": {
"type": "string"
},
"size": {
"type": "number"
},
"version": {
"type": "string"
}
}
}Fields§
§download_url: String§min_runtime_version: Option<String>§platform: Option<String>§platforms: Map<String, Value>§sha256: Option<String>§size: Option<f64>§version: StringImplementations§
Source§impl GetLatestAssetResponse
impl GetLatestAssetResponse
pub fn builder() -> GetLatestAssetResponse
Trait Implementations§
Source§impl Clone for GetLatestAssetResponse
impl Clone for GetLatestAssetResponse
Source§fn clone(&self) -> GetLatestAssetResponse
fn clone(&self) -> GetLatestAssetResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetLatestAssetResponse
impl Debug for GetLatestAssetResponse
Source§impl<'de> Deserialize<'de> for GetLatestAssetResponse
impl<'de> Deserialize<'de> for GetLatestAssetResponse
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<&GetLatestAssetResponse> for GetLatestAssetResponse
impl From<&GetLatestAssetResponse> for GetLatestAssetResponse
Source§fn from(value: &GetLatestAssetResponse) -> Self
fn from(value: &GetLatestAssetResponse) -> Self
Converts to this type from the input type.
Source§impl From<GetLatestAssetResponse> for GetLatestAssetResponse
impl From<GetLatestAssetResponse> for GetLatestAssetResponse
Source§fn from(value: GetLatestAssetResponse) -> Self
fn from(value: GetLatestAssetResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for GetLatestAssetResponse
impl Serialize for GetLatestAssetResponse
Source§impl TryFrom<GetLatestAssetResponse> for GetLatestAssetResponse
impl TryFrom<GetLatestAssetResponse> for GetLatestAssetResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetLatestAssetResponse) -> Result<Self, ConversionError>
fn try_from(value: GetLatestAssetResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetLatestAssetResponse
impl RefUnwindSafe for GetLatestAssetResponse
impl Send for GetLatestAssetResponse
impl Sync for GetLatestAssetResponse
impl Unpin for GetLatestAssetResponse
impl UnsafeUnpin for GetLatestAssetResponse
impl UnwindSafe for GetLatestAssetResponse
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