pub struct NoteConfig { /* private fields */ }Implementations§
Source§impl NoteConfig
impl NoteConfig
pub fn builder() -> NoteConfigBuilder
pub fn from_input(input: NoteConfigInput, user_documents_dir: PathBuf) -> Self
pub fn to_toml_file(&self, file: &Path) -> Result<()>
pub fn to_toml(&self) -> Result<String>
pub fn notes_dir(&self) -> &Path
pub fn editor(&self) -> &str
Trait Implementations§
Source§impl Clone for NoteConfig
impl Clone for NoteConfig
Source§fn clone(&self) -> NoteConfig
fn clone(&self) -> NoteConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteConfig
impl Debug for NoteConfig
Source§impl<'de> Deserialize<'de> for NoteConfig
impl<'de> Deserialize<'de> for NoteConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NoteConfig
impl RefUnwindSafe for NoteConfig
impl Send for NoteConfig
impl Sync for NoteConfig
impl Unpin for NoteConfig
impl UnwindSafe for NoteConfig
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