pub struct OsdConfiguration {
pub token: String,
pub video_source_config_token: String,
pub type_: String,
pub position: OsdPosition,
pub text_string: Option<OsdTextString>,
pub image_path: Option<String>,
}Expand description
A single on-screen display (OSD) element returned by GetOSDs / GetOSD.
Pass a modified copy to set_osd, or a new instance (with an empty token)
to create_osd.
Fields§
§token: StringOpaque token. Empty when creating a new OSD via create_osd.
video_source_config_token: StringToken of the video source configuration this OSD is attached to.
type_: StringOSD type: "Text" or "Image".
position: OsdPositionPosition on screen.
text_string: Option<OsdTextString>Text content settings; present when type_ is "Text".
image_path: Option<String>Image path; present when type_ is "Image".
Trait Implementations§
Source§impl Clone for OsdConfiguration
impl Clone for OsdConfiguration
Source§fn clone(&self) -> OsdConfiguration
fn clone(&self) -> OsdConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OsdConfiguration
impl Debug for OsdConfiguration
Source§impl PartialEq for OsdConfiguration
impl PartialEq for OsdConfiguration
impl StructuralPartialEq for OsdConfiguration
Auto Trait Implementations§
impl Freeze for OsdConfiguration
impl RefUnwindSafe for OsdConfiguration
impl Send for OsdConfiguration
impl Sync for OsdConfiguration
impl Unpin for OsdConfiguration
impl UnsafeUnpin for OsdConfiguration
impl UnwindSafe for OsdConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more