pub struct ShapeConfig {
pub select: Vec<String>,
pub filters: Vec<Filter>,
pub limit: Option<usize>,
pub sort: Option<String>,
pub dedupe_by: Option<String>,
pub count_only: bool,
pub truncate_content: Option<usize>,
pub max_output_bytes: Option<usize>,
}Expand description
Shaping options resolved from global CLI flags.
Fields§
§select: Vec<String>Dotted paths to keep in each element (--select / --fields).
filters: Vec<Filter>Conjunctive predicates (--filter, repeatable).
limit: Option<usize>Max elements emitted (--limit).
sort: Option<String>Dotted path to sort ascending by (--sort).
dedupe_by: Option<String>Dotted path to deduplicate by (--dedupe-by).
count_only: boolReplace the payload with {"count": N} (--count-only).
truncate_content: Option<usize>Shorten strings above this many characters (--truncate-content).
max_output_bytes: Option<usize>Drop trailing elements until the envelope fits (--max-output-bytes).
Implementations§
Trait Implementations§
Source§impl Clone for ShapeConfig
impl Clone for ShapeConfig
Source§fn clone(&self) -> ShapeConfig
fn clone(&self) -> ShapeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapeConfig
impl Debug for ShapeConfig
Source§impl Default for ShapeConfig
impl Default for ShapeConfig
Source§fn default() -> ShapeConfig
fn default() -> ShapeConfig
Returns the “default value” for a type. Read more
impl Eq for ShapeConfig
Source§impl PartialEq for ShapeConfig
impl PartialEq for ShapeConfig
impl StructuralPartialEq for ShapeConfig
Auto Trait Implementations§
impl Freeze for ShapeConfig
impl RefUnwindSafe for ShapeConfig
impl Send for ShapeConfig
impl Sync for ShapeConfig
impl Unpin for ShapeConfig
impl UnsafeUnpin for ShapeConfig
impl UnwindSafe for ShapeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.