pub enum StructuredOutputFormat {
Human,
Edn,
Json,
}Variants§
Implementations§
Source§impl StructuredOutputFormat
impl StructuredOutputFormat
pub fn parse(raw: &str, command: &str) -> Result<Self, String>
Sourcepub fn parse_graph(raw: &str, command: &str) -> Result<Self, String>
pub fn parse_graph(raw: &str, command: &str) -> Result<Self, String>
Parser for the graph analyzers (call-graph, call-graph --effects and call-graph --counts).
Besides human|edn|json it accepts the text and tree spellings of human;
any other value is an error.
Sourcepub fn print_value(self, value: &Value) -> Result<(), String>
pub fn print_value(self, value: &Value) -> Result<(), String>
Prints one JSON-shaped document as JSON (single line) or the equivalent Cirru EDN.
Sourcepub fn print_json_text(self, json: &str) -> Result<(), String>
pub fn print_json_text(self, json: &str) -> Result<(), String>
Same as print_value for an already serialized JSON document.
Trait Implementations§
Source§impl Clone for StructuredOutputFormat
impl Clone for StructuredOutputFormat
impl Copy for StructuredOutputFormat
Source§impl Debug for StructuredOutputFormat
impl Debug for StructuredOutputFormat
impl Eq for StructuredOutputFormat
Source§impl PartialEq for StructuredOutputFormat
impl PartialEq for StructuredOutputFormat
impl StructuralPartialEq for StructuredOutputFormat
Auto Trait Implementations§
impl Forget for StructuredOutputFormat
impl Freeze for StructuredOutputFormat
impl Move for StructuredOutputFormat
impl RefUnwindSafe for StructuredOutputFormat
impl Send for StructuredOutputFormat
impl Sync for StructuredOutputFormat
impl Unpin for StructuredOutputFormat
impl UnsafeUnpin for StructuredOutputFormat
impl UnwindSafe for StructuredOutputFormat
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