ephemeris_release/remote.rs
1//! Release state as the forge reports it.
2
3/// Existing remote release state.
4#[derive(Clone, Copy, Debug, Eq, PartialEq)]
5pub struct RemoteRelease {
6 /// Forge identifier used for asset and publish calls.
7 pub id: u64,
8 /// Whether the release is still hidden from readers.
9 pub draft: bool,
10}
11
12/// Existing remote asset identity.
13#[derive(Clone, Debug, Eq, PartialEq)]
14pub struct RemoteAsset {
15 /// Forge identifier of the asset.
16 pub id: u64,
17 /// Uploaded file name.
18 pub name: String,
19 /// Size in bytes.
20 pub size: u64,
21 /// Digest as `sha256:<hex>`, when the forge reports one.
22 pub sha256: Option<String>,
23 /// Where the bytes can be fetched.
24 pub download_url: String,
25}