[][src]Struct tp_note::config::Clipboard

pub struct Clipboard {
    pub content: String,
    pub content_truncated: String,
    pub content_heading: String,
    pub linkname: String,
    pub linkurl: String,

Represents the clipboard content.


content: String

Raw content sting.

content_truncated: String

Shortened content string (max CLIPBOARD_SHORT_LEN_MAX).

content_heading: String

First sentence (all characters until the first period) or all characters until the first empty line. If none is found take the whole content_truncated.

linkname: String

Namepart of the Markdown link. Empty if none.

linkurl: String

URL part of the Markdown link. Empty if none.


impl Clipboard[src]

pub fn new(content: &str) -> Self[src]

Trait Implementations

impl Debug for Clipboard[src]

impl Default for Clipboard[src]

impl PartialEq<Clipboard> for Clipboard[src]

impl StructuralPartialEq for Clipboard[src]

Auto Trait Implementations

impl RefUnwindSafe for Clipboard

impl Send for Clipboard

impl Sync for Clipboard

impl Unpin for Clipboard

impl UnwindSafe for Clipboard

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,