pub struct Release {
pub id: Uuid,
pub app_id: Uuid,
pub version: String,
pub android_version_code: Option<i64>,
pub android_min_version_code: Option<i64>,
pub status: ReleaseStatus,
pub release_notes: Option<String>,
pub published_at: Option<DateTime<Utc>>,
pub min_version: Option<String>,
pub rollout_percent: Option<i16>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A versioned release of an app. version is unique within the app and is the
canonical display string; android_version_code carries the monotonic int
RN Android compares against (NULL for Tauri).
Fields§
§id: Uuid§app_id: Uuid§version: String§android_version_code: Option<i64>§android_min_version_code: Option<i64>RN Android 强制更新下限(整数 versionCode);None = 无下限。与 semver min_version 正交。
status: ReleaseStatus§release_notes: Option<String>§published_at: Option<DateTime<Utc>>§min_version: Option<String>强制更新下限(semver);None = 无下限。
rollout_percent: Option<i16>灰度放量百分比 1-100;None = 视作 100 全量。
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Release
impl<'de> Deserialize<'de> for Release
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
impl Eq for Release
impl StructuralPartialEq for Release
Auto Trait Implementations§
impl Freeze for Release
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Release
impl UnwindSafe for Release
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.