pub trait ResourceTrait {
// Required methods
fn get_id(&self) -> String;
fn to_identifier(&self) -> ResourceIdentifierObject;
fn to_resource_object(&self) -> ResourceObject;
// Provided method
fn get_attributes(&self) -> Option<HashMap<String, Value>> { ... }
}Required Methods§
fn get_id(&self) -> String
fn to_identifier(&self) -> ResourceIdentifierObject
fn to_resource_object(&self) -> ResourceObject
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".