pub struct DynamicNodeSpec { /* private fields */ }Expand description
Serializable declarative UI node tree compiled directly into native SceneTree nodes at runtime.
Implementations§
Source§impl DynamicNodeSpec
Declarative builders and deterministic checksum helpers for DynamicNodeSpec.
impl DynamicNodeSpec
Declarative builders and deterministic checksum helpers for DynamicNodeSpec.
Sourcepub fn action_name(&self) -> Option<&str>
pub fn action_name(&self) -> Option<&str>
Source§impl DynamicNodeSpec
impl DynamicNodeSpec
pub fn get_kind(&self) -> DynamicNodeKind
pub fn get_mut_kind(&mut self) -> &mut DynamicNodeKind
pub fn set_kind(&mut self, val: DynamicNodeKind) -> &mut Self
pub fn get_text(&self) -> &String
pub fn get_mut_text(&mut self) -> &mut String
pub fn set_text(&mut self, val: String) -> &mut Self
pub fn get_mut_action(&mut self) -> &mut Option<String>
pub fn set_action(&mut self, val: Option<String>) -> &mut Self
pub fn get_payload(&self) -> &String
pub fn get_mut_payload(&mut self) -> &mut String
pub fn set_payload(&mut self, val: String) -> &mut Self
pub fn get_style(&self) -> DynamicStyleSpec
pub fn get_mut_style(&mut self) -> &mut DynamicStyleSpec
pub fn set_style(&mut self, val: DynamicStyleSpec) -> &mut Self
pub fn get_children(&self) -> &Vec<DynamicNodeSpec>
pub fn get_mut_children(&mut self) -> &mut Vec<DynamicNodeSpec>
pub fn set_children(&mut self, val: Vec<DynamicNodeSpec>) -> &mut Self
Source§impl DynamicNodeSpec
impl DynamicNodeSpec
pub fn new(kind: DynamicNodeKind) -> Self
Trait Implementations§
Source§impl Clone for DynamicNodeSpec
impl Clone for DynamicNodeSpec
Source§impl Debug for DynamicNodeSpec
impl Debug for DynamicNodeSpec
Source§impl Default for DynamicNodeSpec
impl Default for DynamicNodeSpec
Source§impl<'de> Deserialize<'de> for DynamicNodeSpecwhere
DynamicNodeSpec: Default,
impl<'de> Deserialize<'de> for DynamicNodeSpecwhere
DynamicNodeSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DynamicNodeSpec
impl PartialEq for DynamicNodeSpec
Source§impl Serialize for DynamicNodeSpec
impl Serialize for DynamicNodeSpec
impl StructuralPartialEq for DynamicNodeSpec
Auto Trait Implementations§
impl Forget for DynamicNodeSpec
impl Freeze for DynamicNodeSpec
impl Move for DynamicNodeSpec
impl RefUnwindSafe for DynamicNodeSpec
impl Send for DynamicNodeSpec
impl Sync for DynamicNodeSpec
impl Unpin for DynamicNodeSpec
impl UnsafeUnpin for DynamicNodeSpec
impl UnwindSafe for DynamicNodeSpec
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