pub struct LineStatus {
pub line: String,
pub counter: u64,
pub issued_at: String,
pub support_until: Option<String>,
pub yanked: BTreeMap<String, String>,
pub known_problems: Vec<KnownProblem>,
}Fields§
§line: StringThe release line, e.g. “2026.07”.
counter: u64Monotonic per-line document counter — a stale advisory must not silently replace a newer one.
issued_at: StringRFC 3339 issue time of this document.
support_until: Option<String>Stated support window end, RFC 3339 date, if committed.
yanked: BTreeMap<String, String>Yanked layers of this line, layer → reason.
known_problems: Vec<KnownProblem>Implementations§
Source§impl LineStatus
impl LineStatus
Sourcepub fn verify_and_parse(
envelope: &[u8],
root_public_key: &[u8],
) -> Result<Self, LineStatusError>
pub fn verify_and_parse( envelope: &[u8], root_public_key: &[u8], ) -> Result<Self, LineStatusError>
Verify an envelope against the trust root and parse the payload.
Sourcepub fn sign(
&self,
secret_key: &[u8],
key_id: &str,
) -> Result<String, LineStatusError>
pub fn sign( &self, secret_key: &[u8], key_id: &str, ) -> Result<String, LineStatusError>
Sign a status document (the producing side — CI, next to deposit).
Sourcepub fn report_for(&self, layer: &LayerId) -> LayerStatusReport
pub fn report_for(&self, layer: &LayerId) -> LayerStatusReport
What this document says about one layer.
Trait Implementations§
Source§impl Clone for LineStatus
impl Clone for LineStatus
Source§fn clone(&self) -> LineStatus
fn clone(&self) -> LineStatus
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 LineStatus
impl Debug for LineStatus
Source§impl<'de> Deserialize<'de> for LineStatus
impl<'de> Deserialize<'de> for LineStatus
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 LineStatus
Source§impl PartialEq for LineStatus
impl PartialEq for LineStatus
Source§impl Serialize for LineStatus
impl Serialize for LineStatus
impl StructuralPartialEq for LineStatus
Auto Trait Implementations§
impl Freeze for LineStatus
impl RefUnwindSafe for LineStatus
impl Send for LineStatus
impl Sync for LineStatus
impl Unpin for LineStatus
impl UnsafeUnpin for LineStatus
impl UnwindSafe for LineStatus
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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