pub struct Settings { /* private fields */ }Implementations§
Source§impl Settings
impl Settings
pub async fn load(io: &DefaultEnvironmentIo) -> Result<Self>
pub async fn save(&self, io: &DefaultEnvironmentIo) -> Result<()>
Source§impl Settings
VCC Settings / Stores
impl Settings
VCC Settings / Stores
pub fn show_prerelease_packages(&self) -> bool
pub fn set_show_prerelease_packages(&mut self, value: bool)
pub fn default_project_path(&self) -> Option<&str>
pub fn set_default_project_path(&mut self, value: &str)
pub fn project_backup_path(&self) -> Option<&str>
pub fn set_project_backup_path(&mut self, value: &str)
pub fn unity_hub_path(&self) -> &str
pub fn set_unity_hub_path(&mut self, value: &str)
Source§impl Settings
VPM Settings (vrc-get extensions)
impl Settings
VPM Settings (vrc-get extensions)
pub fn ignore_curated_repository(&self) -> bool
pub fn ignore_official_repository(&self) -> bool
Source§impl Settings
User Package Managements
impl Settings
User Package Managements
pub fn user_package_folders(&self) -> &[PathBuf]
pub fn remove_user_package(&mut self, pkg_path: &Path)
pub async fn add_user_package( &mut self, pkg_path: &Path, io: &DefaultEnvironmentIo, ) -> AddUserPackageResult
Source§impl Settings
Repository Managements
impl Settings
Repository Managements
pub fn get_user_repos(&self) -> &[UserRepoSetting]
pub fn can_add_remote_repo( &self, url: &Url, remote_repo: &RemoteRepository, ) -> bool
pub fn add_remote_repo( &mut self, url: &Url, name: Option<&str>, headers: IndexMap<Box<str>, Box<str>>, remote_repo: &RemoteRepository, path_buf: &Path, ) -> bool
pub fn add_local_repo(&mut self, path: &Path, name: Option<&str>) -> bool
pub fn remove_repo( &mut self, condition: impl Fn(&UserRepoSetting) -> bool, ) -> Vec<UserRepoSetting>
Sourcepub fn remove_id_duplication(&mut self) -> Vec<UserRepoSetting>
pub fn remove_id_duplication(&mut self) -> Vec<UserRepoSetting>
Removes id-duplicated repositories
If there are multiple repositories with the same id, this function will remove all but the first one.
pub fn update_id(&mut self, loaded: &PackageCollection) -> bool
pub fn export_repositories(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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