#[non_exhaustive]pub struct VisualElement {
pub layout: Option<Layout>,
pub type: String,
pub detected_languages: Vec<DetectedLanguage>,
/* private fields */
}Expand description
Detected non-text visual elements e.g. checkbox, signature etc. on the page.
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.layout: Option<Layout>Layout for VisualElement.
type: StringType of the VisualElement.
detected_languages: Vec<DetectedLanguage>A list of detected languages together with confidence.
Implementations§
Source§impl VisualElement
impl VisualElement
pub fn new() -> Self
Sourcepub fn set_layout<T>(self, v: T) -> Self
pub fn set_layout<T>(self, v: T) -> Self
Sets the value of layout.
Sourcepub fn set_or_clear_layout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_layout<T>(self, v: Option<T>) -> Self
Sets or clears the value of layout.
Sourcepub fn set_detected_languages<T, V>(self, v: T) -> Self
pub fn set_detected_languages<T, V>(self, v: T) -> Self
Sets the value of detected_languages.
Trait Implementations§
Source§impl Clone for VisualElement
impl Clone for VisualElement
Source§fn clone(&self) -> VisualElement
fn clone(&self) -> VisualElement
Returns a duplicate 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 VisualElement
impl Debug for VisualElement
Source§impl Default for VisualElement
impl Default for VisualElement
Source§fn default() -> VisualElement
fn default() -> VisualElement
Returns the “default value” for a type. Read more
Source§impl Message for VisualElement
impl Message for VisualElement
Source§impl PartialEq for VisualElement
impl PartialEq for VisualElement
impl StructuralPartialEq for VisualElement
Auto Trait Implementations§
impl Freeze for VisualElement
impl RefUnwindSafe for VisualElement
impl Send for VisualElement
impl Sync for VisualElement
impl Unpin for VisualElement
impl UnwindSafe for VisualElement
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