pub trait CustomValue: Debug + Send + Sync + Serialize + Deserialize {
// Required methods
fn clone_value(&self, span: Span) -> Value;
fn value_string(&self) -> String;
fn to_base_value(&self, span: Span) -> Result<Value, ShellError>;
fn as_any(&self) -> &dyn Any;
// Provided methods
fn follow_path_int(
&self,
_count: usize,
span: Span
) -> Result<Value, ShellError> { ... }
fn follow_path_string(
&self,
_column_name: String,
span: Span
) -> Result<Value, ShellError> { ... }
fn partial_cmp(&self, _other: &Value) -> Option<Ordering> { ... }
fn operation(
&self,
_lhs_span: Span,
operator: Operator,
op: Span,
_right: &Value
) -> Result<Value, ShellError> { ... }
}
Serialize this value into the given Serde serializer.
Read more
Serialize this value into the given Serde serializer.
Read more
Serialize this value into the given Serde serializer.
Read more
Serialize this value into the given Serde serializer.
Read more