pub enum RevsRequest {
Count(usize),
List(Vec<String>),
}Expand description
A revisions request carried by the activation tools. Count(n)
resolves to the newest n stable release tags of the repo’s
dominant tag family (plus HEAD); List(revs) is an explicit set of
git revspecs used verbatim. The untagged deserialization maps a JSON
integer to Count and a JSON array of strings to List, so the tool
arg accepts int | [str]. Resolution happens at activate time — see
Workspace::resolve_revs.
Variants§
Count(usize)
Last n stable release tags of the repo’s dominant tag family,
ordered oldest→newest with HEAD appended. Tags are classified
into (prefix, version, is_prerelease) and grouped by prefix; the
family with the most stable tags wins, so on a repo with several
tag families (e.g. apache-arrow-*, go/v*, r-*) the release
line is chosen, not an unrelated package family. Prereleases (rc,
alpha, beta, dev, pre, preview) and non-version tags (e.g.
r-universe-release) are excluded. See Workspace::resolve_revs
for the full selection + fallback semantics.
List(Vec<String>)
Explicit git revspecs (tags, branches, or SHAs), used as given.
Trait Implementations§
Source§impl Clone for RevsRequest
impl Clone for RevsRequest
Source§fn clone(&self) -> RevsRequest
fn clone(&self) -> RevsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RevsRequest
impl Debug for RevsRequest
Source§impl<'de> Deserialize<'de> for RevsRequest
impl<'de> Deserialize<'de> for RevsRequest
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>,
impl Eq for RevsRequest
Source§impl JsonSchema for RevsRequest
impl JsonSchema for RevsRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RevsRequest
impl PartialEq for RevsRequest
Source§fn eq(&self, other: &RevsRequest) -> bool
fn eq(&self, other: &RevsRequest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RevsRequest
impl Serialize for RevsRequest
impl StructuralPartialEq for RevsRequest
Auto Trait Implementations§
impl Freeze for RevsRequest
impl RefUnwindSafe for RevsRequest
impl Send for RevsRequest
impl Sync for RevsRequest
impl Unpin for RevsRequest
impl UnsafeUnpin for RevsRequest
impl UnwindSafe for RevsRequest
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
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
key and return true if they are equal.