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 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 duplicate 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
Source§impl FromToml for NoteConfig
impl FromToml for NoteConfig
Source§fn from_toml(toml: &str) -> Result<Self, Error>where
Self: DeserializeOwned,
fn from_toml(toml: &str) -> Result<Self, Error>where
Self: DeserializeOwned,
Deserializes from a TOML string to Self
Source§fn from_toml_file(toml_file: &Path) -> Result<Self, Error>where
Self: DeserializeOwned,
fn from_toml_file(toml_file: &Path) -> Result<Self, Error>where
Self: DeserializeOwned,
Deserializes from a TOML file (typically
.toml) to SelfSource§impl Serialize for NoteConfig
impl Serialize for NoteConfig
Source§impl ToStarterToml for NoteConfig
impl ToStarterToml for NoteConfig
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