MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / Value

Enum Value

cel/src/objects.rs:532–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531#[derive(Clone)]
532pub enum Value {
533 List(Arc<Vec<Value>>),
534 Map(Map),
535
536 Function(Arc<String>, Option<Box<Value>>),
537
538 // Atoms
539 Int(i64),
540 UInt(u64),
541 Float(f64),
542 String(Arc<String>),
543 Bytes(Arc<Vec<u8>>),
544 Bool(bool),
545 #[cfg(feature = "chrono")]
546 Duration(chrono::Duration),
547 #[cfg(feature = "chrono")]
548 Timestamp(chrono::DateTime<chrono::FixedOffset>),
549 Opaque(Arc<dyn Opaque>),
550 #[cfg(feature = "structs")]
551 Struct(Arc<CelStruct>),
552 Null,
553}
554
555impl Debug for Value {
556 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {

Callers 1

jsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected