Struct age::IdentityFile
source · pub struct IdentityFile { /* private fields */ }
Expand description
A list of identities that has been parsed from some input file.
Implementations§
source§impl IdentityFile
impl IdentityFile
sourcepub fn from_file(filename: String) -> Result<Self>
pub fn from_file(filename: String) -> Result<Self>
Parses one or more identities from a file containing valid UTF-8.
sourcepub fn from_buffer<R: BufRead>(data: R) -> Result<Self>
pub fn from_buffer<R: BufRead>(data: R) -> Result<Self>
Parses one or more identities from a buffered input containing valid UTF-8.
sourcepub fn from_input_reader(reader: InputReader) -> Result<Self>
pub fn from_input_reader(reader: InputReader) -> Result<Self>
Parses one or more identities from an InputReader
;
sourcepub fn into_identities(self) -> Vec<IdentityFileEntry>
pub fn into_identities(self) -> Vec<IdentityFileEntry>
Returns the identities in this file.
Auto Trait Implementations§
impl RefUnwindSafe for IdentityFile
impl Send for IdentityFile
impl Sync for IdentityFile
impl Unpin for IdentityFile
impl UnwindSafe for IdentityFile
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