pub struct OutputConfig {
pub mode: String,
pub fields: Option<Vec<String>>,
pub no_header: bool,
pub quiet: bool,
}Fields§
§mode: String§fields: Option<Vec<String>>§no_header: bool§quiet: boolImplementations§
Source§impl OutputConfig
impl OutputConfig
pub fn from_cli( mode: &str, fields: &Option<String>, no_header: bool, quiet: bool, ) -> Self
pub fn print_items( &self, items: &[Value], default_fields: &[&str], id_field: &str, )
pub fn print_single( &self, item: &Value, default_fields: &[&str], id_field: &str, )
pub fn print_message(&self, message: &str)
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
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