pub struct FileSelection { /* private fields */ }
Expand description
A generic selection for one or multiple files
Implementations§
Source§impl FileSelection
impl FileSelection
Sourcepub fn by_file_id(file_id: u64) -> Self
pub fn by_file_id(file_id: u64) -> Self
Creates a new file selection with a single file id
Sourcepub fn by_file_ids(file_ids: Vec<u64>) -> Self
pub fn by_file_ids(file_ids: Vec<u64>) -> Self
Creates a new file selection with several IDs
Trait Implementations§
Source§impl Clone for FileSelection
impl Clone for FileSelection
Source§fn clone(&self) -> FileSelection
fn clone(&self) -> FileSelection
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 FileSelection
impl Debug for FileSelection
Source§impl Default for FileSelection
impl Default for FileSelection
Source§fn default() -> FileSelection
fn default() -> FileSelection
Returns the “default value” for a type. Read more
Source§impl From<FileIdentifier> for FileSelection
impl From<FileIdentifier> for FileSelection
Source§fn from(id: FileIdentifier) -> Self
fn from(id: FileIdentifier) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileSelection
impl RefUnwindSafe for FileSelection
impl Send for FileSelection
impl Sync for FileSelection
impl Unpin for FileSelection
impl UnwindSafe for FileSelection
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