Home
runx-runtime

runx_runtime::scaffold::init

Structs §

RunxInitOptions §

pub struct runx_runtime::scaffold::init::RunxInitOptions { /* ... */ }

Trait Implementations §

impl Borrow for RunxInitOptions

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxInitOptions

borrow_mut

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

impl CloneToUninit for RunxInitOptions

clone_to_uninit

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

impl Into for RunxInitOptions

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for RunxInitOptions

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxInitOptions

Error

try_into

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

impl TryFrom for RunxInitOptions

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxInitOptions

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxInitOptions

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for RunxInitOptions

Output

impl Equivalent for RunxInitOptions

equivalent

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

impl Equivalent for RunxInitOptions

equivalent

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

impl Clone for RunxInitOptions

clone

fn clone(self: &Self) -> RunxInitOptions

impl Debug for RunxInitOptions

impl PartialEq for RunxInitOptions

eq

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

impl Send for RunxInitOptions

impl Sync for RunxInitOptions

impl Freeze for RunxInitOptions

impl UnsafeUnpin for RunxInitOptions

impl Unpin for RunxInitOptions

impl UnwindSafe for RunxInitOptions

impl RefUnwindSafe for RunxInitOptions

impl StructuralPartialEq for RunxInitOptions

impl Eq for RunxInitOptions

InitGeneratedValues §

pub struct runx_runtime::scaffold::init::InitGeneratedValues { /* ... */ }

Implementations §

impl InitGeneratedValues

generate

fn generate() -> Self
#[must_use]

Trait Implementations §

impl Borrow for InitGeneratedValues

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for InitGeneratedValues

borrow_mut

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

impl CloneToUninit for InitGeneratedValues

clone_to_uninit

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

impl Into for InitGeneratedValues

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for InitGeneratedValues

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for InitGeneratedValues

Error

try_into

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

impl TryFrom for InitGeneratedValues

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for InitGeneratedValues

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for InitGeneratedValues

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for InitGeneratedValues

Output

impl Equivalent for InitGeneratedValues

equivalent

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

impl Equivalent for InitGeneratedValues

equivalent

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

impl Clone for InitGeneratedValues

clone

fn clone(self: &Self) -> InitGeneratedValues

impl Debug for InitGeneratedValues

impl PartialEq for InitGeneratedValues

eq

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

impl Send for InitGeneratedValues

impl Sync for InitGeneratedValues

impl Freeze for InitGeneratedValues

impl UnsafeUnpin for InitGeneratedValues

impl Unpin for InitGeneratedValues

impl UnwindSafe for InitGeneratedValues

impl RefUnwindSafe for InitGeneratedValues

impl StructuralPartialEq for InitGeneratedValues

impl Eq for InitGeneratedValues

RunxProjectState §

pub struct runx_runtime::scaffold::init::RunxProjectState { /* ... */ }

Trait Implementations §

impl Borrow for RunxProjectState

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxProjectState

borrow_mut

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

impl CloneToUninit for RunxProjectState

clone_to_uninit

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

impl Into for RunxProjectState

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for RunxProjectState

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxProjectState

Error

try_into

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

impl TryFrom for RunxProjectState

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxProjectState

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxProjectState

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for RunxProjectState

Output

impl Equivalent for RunxProjectState

equivalent

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

impl Equivalent for RunxProjectState

equivalent

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

impl Clone for RunxProjectState

clone

fn clone(self: &Self) -> RunxProjectState

impl Debug for RunxProjectState

impl PartialEq for RunxProjectState

eq

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

impl Serialize for RunxProjectState

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for RunxProjectState

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for RunxProjectState

impl Sync for RunxProjectState

impl Freeze for RunxProjectState

impl UnsafeUnpin for RunxProjectState

impl Unpin for RunxProjectState

impl UnwindSafe for RunxProjectState

impl RefUnwindSafe for RunxProjectState

impl DeserializeOwned for RunxProjectState

impl StructuralPartialEq for RunxProjectState

impl Eq for RunxProjectState

RunxInstallState §

pub struct runx_runtime::scaffold::init::RunxInstallState { /* ... */ }

Trait Implementations §

impl Borrow for RunxInstallState

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxInstallState

borrow_mut

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

impl CloneToUninit for RunxInstallState

clone_to_uninit

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

impl Into for RunxInstallState

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for RunxInstallState

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxInstallState

Error

try_into

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

impl TryFrom for RunxInstallState

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxInstallState

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxInstallState

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for RunxInstallState

Output

impl Equivalent for RunxInstallState

equivalent

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

impl Equivalent for RunxInstallState

equivalent

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

impl Clone for RunxInstallState

clone

fn clone(self: &Self) -> RunxInstallState

impl Debug for RunxInstallState

impl PartialEq for RunxInstallState

eq

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

impl Serialize for RunxInstallState

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Deserialize for RunxInstallState

deserialize

fn deserialize(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>

impl Send for RunxInstallState

impl Sync for RunxInstallState

impl Freeze for RunxInstallState

impl UnsafeUnpin for RunxInstallState

impl Unpin for RunxInstallState

impl UnwindSafe for RunxInstallState

impl RefUnwindSafe for RunxInstallState

impl DeserializeOwned for RunxInstallState

impl StructuralPartialEq for RunxInstallState

impl Eq for RunxInstallState

RunxInitResult §

pub struct runx_runtime::scaffold::init::RunxInitResult { /* ... */ }

Trait Implementations §

impl Borrow for RunxInitResult

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for RunxInitResult

borrow_mut

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

impl CloneToUninit for RunxInitResult

clone_to_uninit

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

impl Into for RunxInitResult

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for RunxInitResult

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for RunxInitResult

Error

try_into

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

impl TryFrom for RunxInitResult

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for RunxInitResult

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for RunxInitResult

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for RunxInitResult

Output

impl Equivalent for RunxInitResult

equivalent

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

impl Equivalent for RunxInitResult

equivalent

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

impl Clone for RunxInitResult

clone

fn clone(self: &Self) -> RunxInitResult

impl Debug for RunxInitResult

impl PartialEq for RunxInitResult

eq

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

impl Serialize for RunxInitResult

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Send for RunxInitResult

impl Sync for RunxInitResult

impl Freeze for RunxInitResult

impl UnsafeUnpin for RunxInitResult

impl Unpin for RunxInitResult

impl UnwindSafe for RunxInitResult

impl RefUnwindSafe for RunxInitResult

impl StructuralPartialEq for RunxInitResult

impl Eq for RunxInitResult

EnsuredProjectState §

pub struct runx_runtime::scaffold::init::EnsuredProjectState { /* ... */ }

Trait Implementations §

impl Borrow for EnsuredProjectState

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for EnsuredProjectState

borrow_mut

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

impl CloneToUninit for EnsuredProjectState

clone_to_uninit

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

impl Into for EnsuredProjectState

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for EnsuredProjectState

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for EnsuredProjectState

Error

try_into

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

impl TryFrom for EnsuredProjectState

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for EnsuredProjectState

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for EnsuredProjectState

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for EnsuredProjectState

Output

impl Equivalent for EnsuredProjectState

equivalent

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

impl Equivalent for EnsuredProjectState

equivalent

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

impl Clone for EnsuredProjectState

clone

fn clone(self: &Self) -> EnsuredProjectState

impl Debug for EnsuredProjectState

impl PartialEq for EnsuredProjectState

eq

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

impl Send for EnsuredProjectState

impl Sync for EnsuredProjectState

impl Freeze for EnsuredProjectState

impl UnsafeUnpin for EnsuredProjectState

impl Unpin for EnsuredProjectState

impl UnwindSafe for EnsuredProjectState

impl RefUnwindSafe for EnsuredProjectState

impl StructuralPartialEq for EnsuredProjectState

impl Eq for EnsuredProjectState

EnsuredInstallState §

pub struct runx_runtime::scaffold::init::EnsuredInstallState { /* ... */ }

Trait Implementations §

impl Borrow for EnsuredInstallState

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for EnsuredInstallState

borrow_mut

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

impl CloneToUninit for EnsuredInstallState

clone_to_uninit

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

impl Into for EnsuredInstallState

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for EnsuredInstallState

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for EnsuredInstallState

Error

try_into

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

impl TryFrom for EnsuredInstallState

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for EnsuredInstallState

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for EnsuredInstallState

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for EnsuredInstallState

Output

impl Equivalent for EnsuredInstallState

equivalent

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

impl Equivalent for EnsuredInstallState

equivalent

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

impl Clone for EnsuredInstallState

clone

fn clone(self: &Self) -> EnsuredInstallState

impl Debug for EnsuredInstallState

impl PartialEq for EnsuredInstallState

eq

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

impl Send for EnsuredInstallState

impl Sync for EnsuredInstallState

impl Freeze for EnsuredInstallState

impl UnsafeUnpin for EnsuredInstallState

impl Unpin for EnsuredInstallState

impl UnwindSafe for EnsuredInstallState

impl RefUnwindSafe for EnsuredInstallState

impl StructuralPartialEq for EnsuredInstallState

impl Eq for EnsuredInstallState

Enums §

InitAction §

pub enum runx_runtime::scaffold::init::InitAction { /* ... */ }

Trait Implementations §

impl Borrow for InitAction

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for InitAction

borrow_mut

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

impl CloneToUninit for InitAction

clone_to_uninit

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

impl Into for InitAction

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for InitAction

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for InitAction

Error

try_into

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

impl TryFrom for InitAction

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for InitAction

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for InitAction

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

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

impl Same for InitAction

Output

impl Equivalent for InitAction

equivalent

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

impl Equivalent for InitAction

equivalent

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

impl Clone for InitAction

clone

fn clone(self: &Self) -> InitAction

impl Debug for InitAction

impl PartialEq for InitAction

eq

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

impl Serialize for InitAction

serialize

fn serialize( self: &Self, __serializer: __S ) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>

impl Send for InitAction

impl Sync for InitAction

impl Freeze for InitAction

impl UnsafeUnpin for InitAction

impl Unpin for InitAction

impl UnwindSafe for InitAction

impl RefUnwindSafe for InitAction

impl StructuralPartialEq for InitAction

impl Eq for InitAction

Functions §

runx_init §

fn runx_init(options: &RunxInitOptions) -> Result<RunxInitResult, super::ScaffoldError>

ensure_runx_project_state §

fn ensure_runx_project_state( project_dir: &std::path::Path, project_id: &str, created_at: &str ) -> Result<EnsuredProjectState, super::ScaffoldError>

ensure_runx_install_state §

fn ensure_runx_install_state( global_home_dir: &std::path::Path, installation_id: &str, created_at: &str ) -> Result<EnsuredInstallState, super::ScaffoldError>