pub struct JdAccountList(/* private fields */);Expand description
JdAccountlist has all accounts grouped by name
Implementations§
Source§impl JdAccountList
impl JdAccountList
Sourcepub fn from_file<P: Into<String>>(path: P) -> Result<JdAccountList>
pub fn from_file<P: Into<String>>(path: P) -> Result<JdAccountList>
Decrypt a specified .dlc file
Examples found in repository?
examples/cli.rs (line 12)
6fn main() {
7 // loop over all arguments for the programm
8 // skip the first one because it's the programm
9 // own name
10 for arg in env::args().skip(1) {
11 // hand over the file path
12 let dlc = JdAccountList::from_file(arg);
13
14 // print the result
15 println!("Accounts: {:?}", dlc);
16 }
17}Sourcepub fn from_data(data: &[u8]) -> Result<JdAccountList>
pub fn from_data(data: &[u8]) -> Result<JdAccountList>
Decrypt the contet of a .dlc file.
Trait Implementations§
Source§impl Debug for JdAccountList
impl Debug for JdAccountList
Source§impl Default for JdAccountList
impl Default for JdAccountList
Source§fn default() -> JdAccountList
fn default() -> JdAccountList
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JdAccountList
impl<'de> Deserialize<'de> for JdAccountList
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 JdAccountList
impl RefUnwindSafe for JdAccountList
impl Send for JdAccountList
impl Sync for JdAccountList
impl Unpin for JdAccountList
impl UnsafeUnpin for JdAccountList
impl UnwindSafe for JdAccountList
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