pub struct App { /* private fields */ }Implementations§
Source§impl App
impl App
pub fn new() -> Result<Self, JourneyError>
pub fn new_for_init() -> Result<Self, JourneyError>
pub fn run(&mut self, cli: Cli) -> Result<(), JourneyError>
pub fn run_journeyctl(&mut self, cli: JourneyCtlCli) -> Result<(), JourneyError>
pub fn run_journeyctl_command( &mut self, command: Commands, ) -> Result<(), JourneyError>
pub fn init_vault( &mut self, path: PathBuf, name: Option<String>, obsidian: bool, ) -> Result<(), JourneyError>
pub fn get_vault(&self, vault_name: Option<&str>) -> Result<Vault, JourneyError>
pub fn parse_date(&self, cli: &CliArgs) -> Result<NaiveDate, JourneyError>
pub fn unlist_vault(&mut self, vault_name: &str) -> Result<(), JourneyError>
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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