Struct dropbox_sdk::files::SearchArg
source · #[non_exhaustive]pub struct SearchArg {
pub path: PathROrId,
pub query: String,
pub start: u64,
pub max_results: u64,
pub mode: SearchMode,
}Fields (Non-exhaustive)§
This struct is marked as 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: PathROrIdThe path in the user’s Dropbox to search. Should probably be a folder.
query: StringThe 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: u64The starting index within the search results (used for paging).
max_results: u64The maximum number of search results to return.
mode: SearchModeThe search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts.
Implementations§
source§impl SearchArg
impl SearchArg
pub fn new(path: PathROrId, query: String) -> Self
Available on crate feature
dbx_files only.pub fn with_start(self, value: u64) -> Self
Available on crate feature
dbx_files only.pub fn with_max_results(self, value: u64) -> Self
Available on crate feature
dbx_files only.pub fn with_mode(self, value: SearchMode) -> Self
Available on crate feature
dbx_files only.Trait Implementations§
source§impl<'de> Deserialize<'de> for SearchArg
Available on crate feature dbx_files only.
impl<'de> Deserialize<'de> for SearchArg
Available on crate feature
dbx_files only.source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SearchArg
Available on crate feature dbx_files only.
impl PartialEq for SearchArg
Available on crate feature
dbx_files only.impl Eq for SearchArg
Available on crate feature
dbx_files only.impl StructuralEq for SearchArg
Available on crate feature
dbx_files only.impl StructuralPartialEq for SearchArg
Available on crate feature
dbx_files only.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§
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