Struct deltachat::simplify::SimplifiedText
source · pub(crate) struct SimplifiedText {
pub text: String,
pub is_forwarded: bool,
pub is_cut: bool,
pub top_quote: Option<String>,
pub footer: Option<String>,
}
Expand description
Simplified text and some additional information gained from the input.
Fields§
§text: String
The text itself.
is_forwarded: bool
True if the message is forwarded.
is_cut: bool
True if nonstandard footer was removed
or if the message contains quotes other than top_quote
.
top_quote: Option<String>
Top quote, if any.
Footer, if any.
Trait Implementations§
source§impl Debug for SimplifiedText
impl Debug for SimplifiedText
source§impl Default for SimplifiedText
impl Default for SimplifiedText
source§fn default() -> SimplifiedText
fn default() -> SimplifiedText
Returns the “default value” for a type. Read more
source§impl PartialEq for SimplifiedText
impl PartialEq for SimplifiedText
impl Eq for SimplifiedText
impl StructuralPartialEq for SimplifiedText
Auto Trait Implementations§
impl Freeze for SimplifiedText
impl RefUnwindSafe for SimplifiedText
impl Send for SimplifiedText
impl Sync for SimplifiedText
impl Unpin for SimplifiedText
impl UnwindSafe for SimplifiedText
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.