pub struct ChocoData {
pub version: String,
pub url: String,
pub sha256: Option<String>,
}Expand description
A parsed Chocolatey OData package entry (the subset served by /choco/:name).
Choco publishes a .nupkg URL and a Version, but no reliable sha256
(the hash is computed on download), so ChocoData::sha256 is Option and
typically None.
Fields§
§version: StringThe package version (Version in OData).
url: StringThe .nupkg download URL.
sha256: Option<String>The package sha256, when the index happens to carry one (usually absent).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChocoData
impl<'de> Deserialize<'de> for ChocoData
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
Auto Trait Implementations§
impl Freeze for ChocoData
impl RefUnwindSafe for ChocoData
impl Send for ChocoData
impl Sync for ChocoData
impl Unpin for ChocoData
impl UnsafeUnpin for ChocoData
impl UnwindSafe for ChocoData
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