pub struct CodexLatestReleases {
pub stable: Option<Version>,
pub beta: Option<Version>,
pub nightly: Option<Version>,
}Expand description
Caller-supplied table of known latest Codex releases.
The crate intentionally avoids network requests; hosts should populate this
with data from their preferred distribution channel (e.g. npm view @openai/codex version, brew info codex --json, or the GitHub releases
API) before requesting an update advisory.
Fields§
§stable: Option<Version>Latest stable release version.
beta: Option<Version>Latest beta pre-release when available.
nightly: Option<Version>Latest nightly build when available.
Implementations§
Source§impl CodexLatestReleases
impl CodexLatestReleases
Sourcepub fn select_for_channel(
&self,
channel: CodexReleaseChannel,
) -> (Option<CodexRelease>, CodexReleaseChannel, bool)
pub fn select_for_channel( &self, channel: CodexReleaseChannel, ) -> (Option<CodexRelease>, CodexReleaseChannel, bool)
Returns the most appropriate latest release for the given channel, falling back to a more stable track when channel-specific data is missing.
Trait Implementations§
Source§impl Clone for CodexLatestReleases
impl Clone for CodexLatestReleases
Source§fn clone(&self) -> CodexLatestReleases
fn clone(&self) -> CodexLatestReleases
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 CodexLatestReleases
impl Debug for CodexLatestReleases
Source§impl Default for CodexLatestReleases
impl Default for CodexLatestReleases
Source§fn default() -> CodexLatestReleases
fn default() -> CodexLatestReleases
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodexLatestReleases
impl<'de> Deserialize<'de> for CodexLatestReleases
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 CodexLatestReleases
impl PartialEq for CodexLatestReleases
Source§impl Serialize for CodexLatestReleases
impl Serialize for CodexLatestReleases
impl Eq for CodexLatestReleases
impl StructuralPartialEq for CodexLatestReleases
Auto Trait Implementations§
impl Freeze for CodexLatestReleases
impl RefUnwindSafe for CodexLatestReleases
impl Send for CodexLatestReleases
impl Sync for CodexLatestReleases
impl Unpin for CodexLatestReleases
impl UnsafeUnpin for CodexLatestReleases
impl UnwindSafe for CodexLatestReleases
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.