pub trait InternalScopeModel<S, R>:
JsonSchema
+ Serialize
+ for<'a> Deserialize<'a>
+ ScopeModel<S>where
R: for<'a> Deserialize<'a>,{
// Required methods
fn int_api_version() -> String;
fn int_kind() -> String;
// Provided methods
fn known_type(input: &ModelRoot<Value>) -> Result<Option<R>> { ... }
fn validate_resource(input: &Value) -> Result<()> { ... }
}
Required Methods§
Provided Methods§
fn known_type(input: &ModelRoot<Value>) -> Result<Option<R>>
fn validate_resource(input: &Value) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.