Skip to main content

ShellKind

Enum ShellKind 

Source
pub enum ShellKind<'a> {
    Repo {
        header: RepoHeaderView<'a>,
        tab: RepoTab,
        extra_tabs: &'a [NavTab<'a>],
    },
    MultiRepoRoot {
        repo_count: Option<usize>,
    },
    MinimalAuth,
}
Expand description

Top-level layout chrome variant rendered by respond_page.

Variants§

§

Repo

Repository forge chrome (topbar, clone popover, 9 standard tabs + optional extra_tabs).

Fields

§header: RepoHeaderView<'a>
§extra_tabs: &'a [NavTab<'a>]
§

MultiRepoRoot

Multi-repo server dashboard chrome (arks serve --root).

Fields

§repo_count: Option<usize>
§

MinimalAuth

Minimal centered authentication shell (/login, /register).

Auto Trait Implementations§

§

impl<'a> Forget for ShellKind<'a>

§

impl<'a> Freeze for ShellKind<'a>
where &'a str: Freeze, &'static str: Freeze, &'a [NavTab<'a>]: Freeze,

§

impl<'a> Move for ShellKind<'a>

§

impl<'a> RefUnwindSafe for ShellKind<'a>

§

impl<'a> Send for ShellKind<'a>
where &'a str: Send, &'static str: Send, &'a [NavTab<'a>]: Send,

§

impl<'a> Sync for ShellKind<'a>

§

impl<'a> Unpin for ShellKind<'a>
where &'a str: Unpin, &'static str: Unpin, &'a [NavTab<'a>]: Unpin,

§

impl<'a> UnsafeUnpin for ShellKind<'a>
where &'a str: UnsafeUnpin, &'static str: UnsafeUnpin, &'a [NavTab<'a>]: UnsafeUnpin,

§

impl<'a> UnwindSafe for ShellKind<'a>
where &'a str: UnwindSafe, &'static str: UnwindSafe, &'a [NavTab<'a>]: UnwindSafe,

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.