pub trait ObsPropertyObject: ObsPropertyObjectPrivate {
// Required method
fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>;
// Provided method
fn get_properties_by_id<T: Into<ObsString> + Sync + Send>(
id: T,
runtime: &ObsRuntime,
) -> Result<HashMap<String, ObsProperty>, ObsError> { ... }
}Expand description
This trait is implemented for all obs objects that can have properties
Required Methods§
Sourcefn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>
fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>
Returns the properties of the object
Provided Methods§
fn get_properties_by_id<T: Into<ObsString> + Sync + Send>( id: T, runtime: &ObsRuntime, ) -> Result<HashMap<String, ObsProperty>, ObsError>
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.