Struct dropbox_sdk::files::SearchArg [−][src]
#[non_exhaustive]pub struct SearchArg { pub path: PathROrId, pub query: String, pub start: u64, pub max_results: u64, pub mode: SearchMode, }
dbx_files
only.Fields (Non-exhaustive)
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.path: PathROrId
The path in the user’s Dropbox to search. Should probably be a folder.
query: String
The string to search for. Query string may be rewritten to improve relevance of results. The 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.
Implementations
impl SearchArg
[src]
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<'de> Deserialize<'de> for SearchArg
[src]
impl<'de> Deserialize<'de> for SearchArg
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SearchArg
[src]
Auto Trait Implementations
impl RefUnwindSafe for SearchArg
impl Send for SearchArg
impl Sync for SearchArg
impl Unpin for SearchArg
impl UnwindSafe for SearchArg
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,