#[non_exhaustive]pub struct WebLabel {
pub label: String,
pub language_code: String,
/* private fields */
}Expand description
Label to provide extra metadata for the web detection.
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.label: StringLabel for extra metadata.
language_code: StringThe BCP-47 language code for label, such as “en-US” or “sr-Latn”.
For more information, see
http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Implementations§
Trait Implementations§
impl StructuralPartialEq for WebLabel
Auto Trait Implementations§
impl Freeze for WebLabel
impl RefUnwindSafe for WebLabel
impl Send for WebLabel
impl Sync for WebLabel
impl Unpin for WebLabel
impl UnwindSafe for WebLabel
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