MCPcopy Create free account
hub / github.com/LEXUGE/dcompass / Validatable

Interface Validatable

droute/src/lib.rs:85–91  ·  view source on GitHub ↗

A object that can be validated

Source from the content-addressed store, hash-verified

83
84/// A object that can be validated
85pub trait Validatable {
86 /// The possible errors from the validation.
87 type Error;
88 /// Validate oneself.
89 /// `used`: some of the tags used by other parts, which should be existed.
90 fn validate(&self, used: Option<&Vec<Label>>) -> std::result::Result<(), Self::Error>;
91}
92
93/// A cell used for bucket and validations
94#[derive(Default)]

Callers

nothing calls this directly

Implementers 4

mod.rsdroute/src/router/mod.rs
native.rsdroute/src/router/script/native.rs
mod.rsdroute/src/router/script/rune_scriptin
mod.rsdroute/src/router/upstreams/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected