pub struct ElementaryFile {
pub name: String,
pub application: Option<String>,
pub private: bool,
}
Fields§
§name: String
§application: Option<String>
§private: bool
Implementations§
Source§impl ElementaryFile
impl ElementaryFile
pub fn new(name: String) -> Self
pub fn application(self, app: String) -> Self
pub fn private(self, private: bool) -> Self
pub fn find(session: &Session, search: AttributeMap) -> Result<Vec<Self>>
pub fn list(session: &Session) -> Result<Vec<Self>>
pub fn exists(self, session: &Session) -> Result<bool>
pub fn read(self, session: &Session) -> Result<Vec<u8>>
pub fn write(self, session: &Session, data: &[u8]) -> Result<()>
Trait Implementations§
Source§impl Clone for ElementaryFile
impl Clone for ElementaryFile
Source§fn clone(&self) -> ElementaryFile
fn clone(&self) -> ElementaryFile
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ElementaryFile
impl Debug for ElementaryFile
Source§impl Default for ElementaryFile
impl Default for ElementaryFile
Source§fn default() -> ElementaryFile
fn default() -> ElementaryFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ElementaryFile
impl RefUnwindSafe for ElementaryFile
impl Send for ElementaryFile
impl Sync for ElementaryFile
impl Unpin for ElementaryFile
impl UnwindSafe for ElementaryFile
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