Trait dev_scope::models::InternalScopeModel
source · 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<()>
Object Safety§
This trait is not object safe.