[][src]Struct dropbox_sdk::files::SearchArg

pub struct SearchArg {
    pub path: PathROrId,
    pub query: String,
    pub start: u64,
    pub max_results: u64,
    pub mode: SearchMode,
}

Fields

path: PathROrId

The path in the user's Dropbox to search. Should probably be a folder.

query: String

The string to search for. The search string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car").

start: u64

The starting index within the search results (used for paging).

max_results: u64

The maximum number of search results to return.

mode: SearchMode

The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts.

Methods

impl SearchArg[src]

pub fn new(path: PathROrId, query: String) -> Self[src]

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

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

pub fn with_mode(self, value: SearchMode) -> Self[src]

Trait Implementations

impl Debug for SearchArg[src]

impl Serialize for SearchArg[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

impl<T> Typeable for T where
    T: Any

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