pub trait CustomValue: Debug + Send + Sync + Serialize + Deserialize {
    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;

    fn to_json(&self) -> Value { ... }
    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> { ... } }

Required Methods§

Provided Methods§

Trait Implementations§

Deserialize this value from the given Serde deserializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Deserialize this value from the given Serde deserializer. 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
Serialize this value into the given Serde serializer. Read more

Implementors§