RezCoreConfig

Struct RezCoreConfig 

Source
pub struct RezCoreConfig {
Show 19 fields pub use_rust_version: bool, pub use_rust_solver: bool, pub use_rust_repository: bool, pub rust_fallback: bool, pub thread_count: Option<usize>, pub cache: CacheConfig, pub packages_path: Vec<String>, pub local_packages_path: String, pub release_packages_path: String, pub default_shell: String, pub version: String, pub plugin_path: Vec<String>, pub package_cache_path: Vec<String>, pub tmpdir: String, pub editor: String, pub image_viewer: String, pub browser: String, pub difftool: String, pub terminal_emulator_command: String,
}
Expand description

Configuration for rez-core components

Fields§

§use_rust_version: bool

Enable Rust version system

§use_rust_solver: bool

Enable Rust solver

§use_rust_repository: bool

Enable Rust repository system

§rust_fallback: bool

Fallback to Python on Rust errors

§thread_count: Option<usize>

Number of threads for parallel operations

§cache: CacheConfig

Cache configuration

§packages_path: Vec<String>

Package search paths

§local_packages_path: String

Local packages path

§release_packages_path: String

Release packages path

§default_shell: String

Default shell

§version: String

Rez version

§plugin_path: Vec<String>

Plugin paths

§package_cache_path: Vec<String>

Package cache paths

§tmpdir: String

Temporary directory

§editor: String

Editor command

§image_viewer: String

Image viewer command

§browser: String

Browser command

§difftool: String

Diff program

§terminal_emulator_command: String

Terminal type

Implementations§

Source§

impl RezCoreConfig

Source

pub fn new() -> Self

Source§

impl RezCoreConfig

Source

pub fn get_search_paths() -> Vec<PathBuf>

Get the list of configuration file paths that are searched

Source

pub fn get_sourced_paths() -> Vec<PathBuf>

Get the list of configuration files that actually exist and are sourced

Source

pub fn load() -> Self

Load configuration from files

Source

pub fn get_field(&self, field_path: &str) -> Option<Value>

Get a configuration field by dot-separated path

Trait Implementations§

Source§

impl Clone for RezCoreConfig

Source§

fn clone(&self) -> RezCoreConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RezCoreConfig

Source§

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

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

impl Default for RezCoreConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RezCoreConfig

Source§

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 Serialize for RezCoreConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

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> 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> 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 = Infallible

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

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

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,