Struct workflow_store::store::Store
source · pub struct Store {
pub linux: Option<String>,
pub macos: Option<String>,
pub unix: Option<String>,
pub windows: Option<String>,
pub generic: Option<String>,
pub browser: Option<String>,
}Expand description
Store
A simple file loader that allows user to specify different paths on various operating systems with fallbacks.
Fields§
§linux: Option<String>§macos: Option<String>§unix: Option<String>§windows: Option<String>§generic: Option<String>§browser: Option<String>Implementations§
source§impl Store
impl Store
pub fn new() -> Store
pub fn with_linux(&mut self, linux: &str) -> &mut Store
pub fn with_macos(&mut self, macos: &str) -> &mut Store
pub fn with_unix(&mut self, unix: &str) -> &mut Store
pub fn with_windows(&mut self, windows: &str) -> &mut Store
pub fn with_generic(&mut self, generic: &str) -> &mut Store
pub fn with_browser(&mut self, browser: &str) -> &mut Store
pub fn filename(&self) -> String
pub async fn exists(&self) -> Result<bool>
pub async fn read_to_string(&self) -> Result<String>
pub async fn write_string(&self, data: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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