Struct pash::files::edit::FileContent [−][src]
pub struct FileContent { /* fields omitted */ }
Expand description
config.toml
and passwords.toml
files’ content.
Implementations
impl FileContent
[src]
impl FileContent
[src]pub fn init_config(self) -> Self
[src]
pub fn init_config(self) -> Self
[src]Initialize default config if file is empty (we are always reading config from file).
pub fn edit_passwords(
self,
category_name: Option<&str>,
password_name: String
) -> String
[src]
pub fn edit_passwords(
self,
category_name: Option<&str>,
password_name: String
) -> String
[src]Load and edit passwords.toml
file’s content.
NOTE: this function does not save content, only returns modified string.
pub fn save_passwords(self, category_name: Option<&str>, password_name: String)
[src]
pub fn save_passwords(self, category_name: Option<&str>, password_name: String)
[src]Save modified content to file with given options (category and password name).
Auto Trait Implementations
impl RefUnwindSafe for FileContent
impl Send for FileContent
impl Sync for FileContent
impl Unpin for FileContent
impl UnwindSafe for FileContent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,