#[non_exhaustive]pub struct TextProperty {
pub detected_languages: Vec<DetectedLanguage>,
pub detected_break: Option<DetectedBreak>,
/* private fields */
}Expand description
Additional information detected on the structural component.
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.detected_languages: Vec<DetectedLanguage>A list of detected languages together with confidence.
detected_break: Option<DetectedBreak>Detected start or end of a text segment.
Implementations§
Source§impl TextProperty
impl TextProperty
pub fn new() -> Self
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.
Sourcepub fn set_detected_break<T>(self, v: T) -> Selfwhere
T: Into<DetectedBreak>,
pub fn set_detected_break<T>(self, v: T) -> Selfwhere
T: Into<DetectedBreak>,
Sets the value of detected_break.
Sourcepub fn set_or_clear_detected_break<T>(self, v: Option<T>) -> Selfwhere
T: Into<DetectedBreak>,
pub fn set_or_clear_detected_break<T>(self, v: Option<T>) -> Selfwhere
T: Into<DetectedBreak>,
Sets or clears the value of detected_break.
Trait Implementations§
Source§impl Clone for TextProperty
impl Clone for TextProperty
Source§fn clone(&self) -> TextProperty
fn clone(&self) -> TextProperty
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 TextProperty
impl Debug for TextProperty
Source§impl Default for TextProperty
impl Default for TextProperty
Source§fn default() -> TextProperty
fn default() -> TextProperty
Returns the “default value” for a type. Read more
Source§impl Message for TextProperty
impl Message for TextProperty
Source§impl PartialEq for TextProperty
impl PartialEq for TextProperty
impl StructuralPartialEq for TextProperty
Auto Trait Implementations§
impl Freeze for TextProperty
impl RefUnwindSafe for TextProperty
impl Send for TextProperty
impl Sync for TextProperty
impl Unpin for TextProperty
impl UnwindSafe for TextProperty
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