pub struct Listing<'a> {
pub header: Vec<(&'static str, String)>,
pub items: Columns<'a>,
pub empty: Option<&'static str>,
pub errors: ItemErrors,
}Available on crate feature
terminal only.Expand description
A list printed one item per line under the fields placing it.
Fields§
§header: Vec<(&'static str, String)>The fields above the items, their values sanitized.
items: Columns<'a>The items, one per line, with no header row.
empty: Option<&'static str>The line printed in place of the items when there are none.
errors: ItemErrorsThe items the command could not list, printed last.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Listing<'a>
impl<'a> Freeze for Listing<'a>
impl<'a> Move for Listing<'a>
impl<'a> RefUnwindSafe for Listing<'a>
impl<'a> Send for Listing<'a>
impl<'a> Sync for Listing<'a>
impl<'a> Unpin for Listing<'a>
impl<'a> UnsafeUnpin for Listing<'a>
impl<'a> UnwindSafe for Listing<'a>
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