cel-cxx 0.2.5

A high-performance, type-safe Rust interface for Common Expression Language (CEL), build on top of cel-cpp with zero-cost FFI bindings via cxx
Documentation
use super::{impl_from, impl_into, impl_typed};
use crate::{types::*, values::*};

use std::time::SystemTime;

impl_typed!(
    Timestamp: Value {
        Timestamp,
        SystemTime
    }
);

impl_into!(
    Timestamp: Value, Constant {
        Timestamp => |self| self,
        SystemTime => |self| self.into(),
    }
);

impl_from!(
    Timestamp: Value {
        Timestamp => |v| *v,
        SystemTime => |v| (*v).into(),
    }
);