Skip to main content

ObsPropertyObject

Trait ObsPropertyObject 

Source
pub trait ObsPropertyObject: ObsPropertyObjectPrivate {
    // Required method
    fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>;

    // Provided method
    fn get_properties_by_source_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§

Source

fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>

Returns the properties of the object

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§