pub struct PropertyDoc {
pub name: String,
pub blurb: String,
pub type_label: String,
pub default: Option<String>,
pub range: Option<(String, String)>,
pub enum_values: Option<String>,
pub readable: bool,
pub writable: bool,
}Expand description
One settable property, owned (the ElementDoc counterpart of a
PropertySpec).
Fields§
§name: StringProperty name (key=value in a launch line).
blurb: StringOne-line description.
type_label: StringType label as gst-inspect names it ("String", "Unsigned Integer").
default: Option<String>Default value as text, if any.
range: Option<(String, String)>Accepted (min, max) range as text, for a numeric property.
enum_values: Option<String>Named choices of an enum-like string property.
readable: bool§writable: boolTrait Implementations§
Source§impl Clone for PropertyDoc
impl Clone for PropertyDoc
Source§fn clone(&self) -> PropertyDoc
fn clone(&self) -> PropertyDoc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PropertyDoc
impl RefUnwindSafe for PropertyDoc
impl Send for PropertyDoc
impl Sync for PropertyDoc
impl Unpin for PropertyDoc
impl UnsafeUnpin for PropertyDoc
impl UnwindSafe for PropertyDoc
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