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 version-sorted tags (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 release tags (git tag --sort=-v:refname, take n),
ordered oldest→newest with HEAD appended.
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
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RevsRequest
impl JsonSchema for RevsRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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
Mutably borrows from an owned value. Read more