Struct hydrus_api::api_core::common::FileSelection
source · [−]pub struct FileSelection { /* private fields */ }
Expand description
A generic selection for one or multiple files
Implementations
sourceimpl 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
sourceimpl Clone for FileSelection
impl Clone for FileSelection
sourcefn clone(&self) -> FileSelection
fn clone(&self) -> FileSelection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FileSelection
impl Debug for FileSelection
sourceimpl Default for FileSelection
impl Default for FileSelection
sourcefn default() -> FileSelection
fn default() -> FileSelection
Returns the “default value” for a type. Read more
sourceimpl From<FileIdentifier> for FileSelection
impl From<FileIdentifier> for FileSelection
sourcefn from(id: FileIdentifier) -> Self
fn from(id: FileIdentifier) -> Self
Converts to this type from the input type.
sourceimpl Serialize for FileSelection
impl Serialize for FileSelection
Auto Trait Implementations
impl RefUnwindSafe for FileSelection
impl Send for FileSelection
impl Sync for FileSelection
impl Unpin for FileSelection
impl UnwindSafe for FileSelection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more