Skip to main content

Extra

Enum Extra 

Source
pub enum Extra {
    Graphify,
    Plugin(&'static str),
    OhMyOpenAgent,
    OhMyOpenCodeSlim,
    Rust,
    Chromium,
    Settings,
}
Expand description

One part of what an image can carry beside the harness: graphify, one of the Claude Code plugins, one of the teams of agents opencode has, the Rust toolchain, the browser, or the recommended settings.

A part is a row with a switch of its own. A ready-made set switches a set of them on (Template::parts) and a custom profile names the ones it goes without, so a file never has to spell out what it wants: what it names nothing of is on, which is also how every profile written before the choice existed reads.

Variants§

§

Graphify

graphify; without it, nothing of graphify is installed and nothing of it is set up in the workspace.

§

Plugin(&'static str)

One Claude Code plugin, as claude plugin install takes it: one of CLAUDE_PLUGINS.

§

OhMyOpenAgent

oh-my-openagent; without it, opencode’s settings do not name it.

§

OhMyOpenCodeSlim

oh-my-opencode-slim; without it, opencode’s settings do not name it.

§

Rust

The Rust toolchain of Quvyta development: rustup’s stable toolchain with clippy and rustfmt, the C toolchain and uv beside it. Without it no build of a Rust project can run in the image.

§

Chromium

Chromium, under Quvyta development; without it, no browser is installed.

§

Settings

The settings, first-start answers and update switches every ready-made set writes into the image of its own. Without it the harness runs as it comes and asks its first questions in every workspace.

Implementations§

Source§

impl Extra

Source

pub fn all() -> Vec<Self>

Every part, in the order the wizard lists them.

Source

pub fn id(self) -> &'static str

How the part is written in definition files, which is also the name its maker gives it.

Source

pub fn parse(id: &str) -> Option<Self>

The part written as id, if there is one.

Source

pub fn older_can_leave_out(self) -> bool

Whether a QCode from before Template::Custom also builds an image without this part when a file’s off-list names it. The Rust toolchain and the recommended settings came with their sets, not as switches, and such a QCode would build them regardless.

Source

pub fn ordered(parts: impl IntoIterator<Item = Self>) -> Vec<Self>

The parts in the order the wizard lists them, so that a set of them reads the same however it was put together.

Trait Implementations§

Source§

impl Clone for Extra

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Extra

Source§

impl Debug for Extra

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Extra

Source§

impl PartialEq for Extra

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Extra

Auto Trait Implementations§

§

impl Freeze for Extra

§

impl RefUnwindSafe for Extra

§

impl Send for Extra

§

impl Sync for Extra

§

impl Unpin for Extra

§

impl UnsafeUnpin for Extra

§

impl UnwindSafe for Extra

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.