PropertyBindingDraft
struct · ferroui-designer · v0.5.0
struct PropertyBindingDraft
Edits only arguments that were explicitly changed. Unknown arguments, nested
extensions, aliases, quoting and spacing in every untouched argument are retained.
binding_extension must be the host's namespace-resolved framework extension;
an application extension with the same local name is deliberately not accepted.
Members
newemptywith_relative_source_extensionsourceargumentliteralset_pathset_modeset_update_source_triggerset_delayset_optionset_sourcesource_specificationvalidate
new
fn new(source: &str, binding_extension: &str) -> Result<Self, String>
empty
fn empty(binding_extension: &str) -> Result<Self, String>
with_relative_source_extension
fn with_relative_source_extension(self: Self, name: Option<&str>) -> Self
Supply the independently namespace-resolved RelativeSource extension. A CLR alias for Binding does not necessarily expose RelativeSource in the same scope. None keeps existing expressions available but disables creating relative sources.
source
fn source(self: &Self) -> String
argument
fn argument(self: &Self, name: &str) -> Option<&MarkupValue>
literal
fn literal(self: &Self, name: &str) -> Option<&str>
set_path
fn set_path(self: &mut Self, path: &str)
set_mode
fn set_mode(self: &mut Self, mode: &str) -> Result<(), String>
set_update_source_trigger
fn set_update_source_trigger(self: &mut Self, trigger: &str) -> Result<(), String>
set_delay
fn set_delay(self: &mut Self, delay: Option<i32>) -> Result<(), String>
set_option
fn set_option(self: &mut Self, option: PropertyBindingOption, value: Option<MarkupValue>) -> Result<(), String>
set_source
fn set_source(self: &mut Self, source: PropertyBindingSource) -> Result<(), String>
source_specification
fn source_specification(self: &Self) -> Option<PropertyBindingSource>
Recognized source fields can be populated by an editor; unknown relative-source extensions remain exact source until the user explicitly chooses another source.
validate
fn validate(self: &Self) -> Result<(), String>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherSameClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.