pub struct AttachSpan {
pub text: String,
pub fg: Option<AttachColor>,
pub bg: Option<AttachColor>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub inverse: bool,
}Expand description
A run of cells of one row of a taken-over terminal, all in one style. Its text is display-only: printable characters, never an escape sequence, with values that look like credentials masked.
Fields§
§text: StringThe characters, one per cell (two for a wide one).
fg: Option<AttachColor>Foreground color; absent is the terminal’s default.
bg: Option<AttachColor>Background color; absent is the terminal’s default.
bold: boolBold.
italic: boolItalic.
underline: boolUnderlined.
inverse: boolForeground and background swapped.
Trait Implementations§
Source§impl Clone for AttachSpan
impl Clone for AttachSpan
Source§impl Debug for AttachSpan
impl Debug for AttachSpan
Source§impl Default for AttachSpan
impl Default for AttachSpan
Source§impl<'de> Deserialize<'de> for AttachSpan
impl<'de> Deserialize<'de> for AttachSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttachSpan
Source§impl PartialEq for AttachSpan
impl PartialEq for AttachSpan
Source§impl Serialize for AttachSpan
impl Serialize for AttachSpan
impl StructuralPartialEq for AttachSpan
Auto Trait Implementations§
impl Freeze for AttachSpan
impl RefUnwindSafe for AttachSpan
impl Send for AttachSpan
impl Sync for AttachSpan
impl Unpin for AttachSpan
impl UnsafeUnpin for AttachSpan
impl UnwindSafe for AttachSpan
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