pub struct CargoConfig {
pub document: Document,
pub registries: Vec<(String, String)>,
/* private fields */
}Fields§
§document: Document§registries: Vec<(String, String)>Implementations§
Source§impl CargoConfig
impl CargoConfig
pub fn new() -> R<Self>
pub fn check_registry(&mut self, registry: &str)
pub fn write_to_file(&self) -> R<()>
pub fn insert_registry(&mut self, name: &str, url: &str)
pub fn get_config() -> R<String>
pub fn gen_config_dir() -> R<String>
Auto Trait Implementations§
impl Freeze for CargoConfig
impl RefUnwindSafe for CargoConfig
impl Send for CargoConfig
impl Sync for CargoConfig
impl Unpin for CargoConfig
impl UnwindSafe for CargoConfig
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