#[non_exhaustive]pub struct DataSpec {
pub scheme: Option<String>,
pub host: Option<String>,
pub port: Option<String>,
pub path: Option<(String, String)>,
pub mime_type: Option<String>,
}Expand description
A <data> element of an intent filter.
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.scheme: Option<String>android:scheme.
host: Option<String>android:host.
port: Option<String>android:port.
path: Option<(String, String)>path, pathPrefix, pathPattern, pathAdvancedPattern or
pathSuffix, with its value.
mime_type: Option<String>android:mimeType.
Trait Implementations§
impl StructuralPartialEq for DataSpec
Auto Trait Implementations§
impl Forget for DataSpec
impl Freeze for DataSpec
impl Move for DataSpec
impl RefUnwindSafe for DataSpec
impl Send for DataSpec
impl Sync for DataSpec
impl Unpin for DataSpec
impl UnsafeUnpin for DataSpec
impl UnwindSafe for DataSpec
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