pub struct Files {
pub local_path: PathBuf,
pub emet_path: PathBuf,
pub emet_cfg_path: PathBuf,
}Fields§
§local_path: PathBuf§emet_path: PathBuf§emet_cfg_path: PathBufImplementations§
Source§impl Files
impl Files
pub fn new() -> Result<Self, EmetError>
pub fn setup(&mut self) -> Result<(), EmetError>
pub fn write(&self, data: String, path: &PathBuf) -> Result<(), EmetError>
pub fn read(&self, path: &PathBuf) -> Result<String, EmetError>
pub fn verify_if_has_private_key(&self) -> Result<bool, EmetError>
pub fn edit_emet_cfg_prvkey(&self, value: bool) -> Result<(), EmetError>
Auto Trait Implementations§
impl Freeze for Files
impl RefUnwindSafe for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl UnsafeUnpin for Files
impl UnwindSafe for Files
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