Struct scl_core::version::structs::DownloadItem
source · pub struct DownloadItem {
pub path: String,
pub sha1: String,
pub size: usize,
pub url: String,
}
Expand description
一个下载项目结构
Fields§
§path: String
如果提供,则是下载的安装路径
sha1: String
该下载项目的文件 SHA1 摘要值
size: usize
该下载项目的文件大小,以字节为单位
url: String
该下载项目的下载链接,如果不提供则应该都是 Maven 的仓库路径,开头加上镜像源链接下载即可
Trait Implementations§
source§impl Clone for DownloadItem
impl Clone for DownloadItem
source§fn clone(&self) -> DownloadItem
fn clone(&self) -> DownloadItem
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 DownloadItem
impl Debug for DownloadItem
source§impl<'de> Deserialize<'de> for DownloadItem
impl<'de> Deserialize<'de> for DownloadItem
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 PartialEq<DownloadItem> for DownloadItem
impl PartialEq<DownloadItem> for DownloadItem
source§fn eq(&self, other: &DownloadItem) -> bool
fn eq(&self, other: &DownloadItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DownloadItem
impl Serialize for DownloadItem
impl Eq for DownloadItem
impl StructuralEq for DownloadItem
impl StructuralPartialEq for DownloadItem
Auto Trait Implementations§
impl RefUnwindSafe for DownloadItem
impl Send for DownloadItem
impl Sync for DownloadItem
impl Unpin for DownloadItem
impl UnwindSafe for DownloadItem
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.