Element

Enum Element 

Source
pub enum Element {
Show 14 variants TextBlock(TextBlock), Code(Code), Image(Image), Row(Row), Column(Column), IFrame(IFrame), Input(Input), Integer(Text), Boolean(Text), Decimal(Text), Scene(Scene), Grid(Grid), Markup(Markups), Null,
}

Variants§

§

TextBlock(TextBlock)

§

Code(Code)

§

Image(Image)

§

Row(Row)

§

Column(Column)

§

IFrame(IFrame)

§

Input(Input)

§

Integer(Text)

§

Boolean(Text)

§

Decimal(Text)

§

Scene(Scene)

§

Grid(Grid)

§

Markup(Markups)

§

Null

Implementations§

Source§

impl Element

Source

pub fn to_node(&self, doc_id: &str, collector: &mut Collector) -> Node

Source

pub fn to_dom(&self, _id: &str)

Source§

impl Element

Source

pub fn set_id( children: &mut [Element], index_vec: &[usize], external_id: Option<String>, )

Source

pub fn get_external_children_condition( &self, external_open_id: &Option<String>, external_children_container: &[Vec<usize>], ) -> Vec<ExternalChildrenCondition>

Source

pub fn get_external_children_dependencies( children: &[Element], ) -> ExternalChildrenDependenciesMap

Source

pub fn get_event_dependencies( children: &[Element], data: &mut DataDependenciesMap, )

Source

pub fn get_device_dependencies( document: &Document, data: &mut DataDependenciesMap, )

Source

pub fn get_dark_mode_dependencies( document: &Document, data: &mut DataDependenciesMap, )

Source

pub fn get_variable_dependencies( document: &Document, data: &mut DataDependenciesMap, )

Source

pub fn is_open_container(&self, is_container_children_empty: bool) -> bool

Source

pub fn append_at(&self) -> Option<String>

Source

pub fn number_of_children(&self) -> usize

Source

pub fn container_id(&self) -> Option<String>

Source

pub fn set_container_id(&mut self, name: Option<String>)

Source

pub fn set_element_id(&mut self, name: Option<String>)

Source

pub fn set_condition(&mut self, condition: Option<Condition>)

Source

pub fn set_non_visibility(&mut self, is_not_visible: bool)

Source

pub fn set_events(&mut self, events: &mut Vec<Event>)

Source

pub fn get_heading_region(&self) -> Option<&Region>

Source

pub fn get_mut_common(&mut self) -> Option<&mut Common>

Source

pub fn get_common(&self) -> Option<&Common>

Source

pub fn get_container(&self) -> Option<&Container>

Source

pub fn renest_on_region(elements: &mut Vec<Element>)

Trait Implementations§

Source§

impl Clone for Element

Source§

fn clone(&self) -> Element

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Element

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Element

Source§

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 Element

Source§

fn eq(&self, other: &Element) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Element

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Element

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,