#[non_exhaustive]pub struct SearchMatch {
pub match_type: SearchMatchType,
pub metadata: Metadata,
}
Available on crate features
sync_routes
and dbx_files
only.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.match_type: SearchMatchType
The type of the match.
metadata: Metadata
The metadata for the matched file or folder.
Implementations§
Source§impl SearchMatch
impl SearchMatch
pub fn new(match_type: SearchMatchType, metadata: Metadata) -> Self
Trait Implementations§
Source§impl Clone for SearchMatch
impl Clone for SearchMatch
Source§fn clone(&self) -> SearchMatch
fn clone(&self) -> SearchMatch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchMatch
impl Debug for SearchMatch
Source§impl<'de> Deserialize<'de> for SearchMatch
impl<'de> Deserialize<'de> for SearchMatch
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 SearchMatch
impl PartialEq for SearchMatch
Source§impl Serialize for SearchMatch
impl Serialize for SearchMatch
impl StructuralPartialEq for SearchMatch
Auto Trait Implementations§
impl Freeze for SearchMatch
impl RefUnwindSafe for SearchMatch
impl Send for SearchMatch
impl Sync for SearchMatch
impl Unpin for SearchMatch
impl UnwindSafe for SearchMatch
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