pub struct CodexUpdateAdvisory {
pub local_release: Option<CodexRelease>,
pub latest_release: Option<CodexRelease>,
pub comparison_channel: CodexReleaseChannel,
pub status: CodexUpdateStatus,
pub notes: Vec<String>,
}Expand description
Update guidance derived from comparing local and latest Codex versions.
Fields§
§local_release: Option<CodexRelease>Local release as parsed from codex --version.
latest_release: Option<CodexRelease>Latest release used for comparison (may be a fallback track).
comparison_channel: CodexReleaseChannelChannel chosen for comparison (local channel when available, otherwise stable).
status: CodexUpdateStatusHigh-level outcome to drive host UX.
notes: Vec<String>Human-readable hints callers can log or display.
Implementations§
Source§impl CodexUpdateAdvisory
impl CodexUpdateAdvisory
Sourcepub fn is_update_recommended(&self) -> bool
pub fn is_update_recommended(&self) -> bool
True when the host should prompt for or attempt an update.
Trait Implementations§
Source§impl Clone for CodexUpdateAdvisory
impl Clone for CodexUpdateAdvisory
Source§fn clone(&self) -> CodexUpdateAdvisory
fn clone(&self) -> CodexUpdateAdvisory
Returns a duplicate 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 CodexUpdateAdvisory
impl Debug for CodexUpdateAdvisory
Source§impl<'de> Deserialize<'de> for CodexUpdateAdvisory
impl<'de> Deserialize<'de> for CodexUpdateAdvisory
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 for CodexUpdateAdvisory
impl PartialEq for CodexUpdateAdvisory
Source§impl Serialize for CodexUpdateAdvisory
impl Serialize for CodexUpdateAdvisory
impl Eq for CodexUpdateAdvisory
impl StructuralPartialEq for CodexUpdateAdvisory
Auto Trait Implementations§
impl Freeze for CodexUpdateAdvisory
impl RefUnwindSafe for CodexUpdateAdvisory
impl Send for CodexUpdateAdvisory
impl Sync for CodexUpdateAdvisory
impl Unpin for CodexUpdateAdvisory
impl UnsafeUnpin for CodexUpdateAdvisory
impl UnwindSafe for CodexUpdateAdvisory
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,
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.