pub struct SoftwareVersion {
pub id: String,
pub software_id: String,
pub version: String,
pub release_notes: String,
pub download_url: String,
pub file_size: i64,
pub platform: String,
pub status: i32,
pub force_update: bool,
pub min_compatible: String,
pub channel: String,
}Fields§
§id: String§software_id: String§version: String§release_notes: String§download_url: String§file_size: i64§platform: String§status: i32§force_update: bool是否强制更新(旧服务端无此列时默认 false,向后兼容)
min_compatible: String最低兼容版本(旧服务端无此列时默认空串,向后兼容)
channel: String发布通道(stable/beta/…,旧服务端无此列时默认空串,向后兼容)
Trait Implementations§
Source§impl Clone for SoftwareVersion
impl Clone for SoftwareVersion
Source§fn clone(&self) -> SoftwareVersion
fn clone(&self) -> SoftwareVersion
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 SoftwareVersion
impl Debug for SoftwareVersion
Source§impl<'de> Deserialize<'de> for SoftwareVersion
impl<'de> Deserialize<'de> for SoftwareVersion
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 SoftwareVersion
impl RefUnwindSafe for SoftwareVersion
impl Send for SoftwareVersion
impl Sync for SoftwareVersion
impl Unpin for SoftwareVersion
impl UnsafeUnpin for SoftwareVersion
impl UnwindSafe for SoftwareVersion
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