[][src]Struct dropbox_sdk::files::SearchOptions

#[non_exhaustive]pub struct SearchOptions {
    pub path: Option<PathROrId>,
    pub max_results: u64,
    pub order_by: Option<SearchOrderBy>,
    pub file_status: FileStatus,
    pub filename_only: bool,
    pub file_extensions: Option<Vec<String>>,
    pub file_categories: Option<Vec<FileCategory>>,
}
This is supported on crate feature dbx_files only.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
path: Option<PathROrId>

Scopes the search to a path in the user's Dropbox. Searches the entire Dropbox if not specified.

max_results: u64

The maximum number of search results to return.

order_by: Option<SearchOrderBy>

Specified property of the order of search results. By default, results are sorted by relevance.

file_status: FileStatus

Restricts search to the given file status.

filename_only: bool

Restricts search to only match on filenames.

file_extensions: Option<Vec<String>>

Restricts search to only the extensions specified. Only supported for active file search.

file_categories: Option<Vec<FileCategory>>

Restricts search to only the file categories specified. Only supported for active file search.

Implementations

impl SearchOptions[src]

pub fn with_path(self, value: PathROrId) -> Self[src]

pub fn with_max_results(self, value: u64) -> Self[src]

pub fn with_order_by(self, value: SearchOrderBy) -> Self[src]

pub fn with_file_status(self, value: FileStatus) -> Self[src]

pub fn with_filename_only(self, value: bool) -> Self[src]

pub fn with_file_extensions(self, value: Vec<String>) -> Self[src]

pub fn with_file_categories(self, value: Vec<FileCategory>) -> Self[src]

Trait Implementations

impl Clone for SearchOptions[src]

impl Debug for SearchOptions[src]

impl Default for SearchOptions[src]

impl<'de> Deserialize<'de> for SearchOptions[src]

impl PartialEq<SearchOptions> for SearchOptions[src]

impl Serialize for SearchOptions[src]

impl StructuralPartialEq for SearchOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.