pub enum NestedAttrType {
Reference(RefValue),
Value(AttributeType),
Array(Box<NestedAttrType>),
Null,
}
Expand description
Enum representing attribute type which can be nested.
References: supports ref said and ref name Value: supports all AttributeType Object: can be inline object which can have nested attributes types Array: is an array of specific type (only one type allowed)
Variants§
Reference(RefValue)
Value(AttributeType)
Array(Box<NestedAttrType>)
Null
Indicator that attribute was removed and does not need any type
Implementations§
Source§impl NestedAttrType
impl NestedAttrType
pub fn to_js_value(&self) -> Result<JsValue, JsValue>
pub fn from_js_value(value: JsValue) -> Result<NestedAttrType, JsValue>
Trait Implementations§
Source§impl Clone for NestedAttrType
impl Clone for NestedAttrType
Source§fn clone(&self) -> NestedAttrType
fn clone(&self) -> NestedAttrType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Collapsible for NestedAttrType
impl Collapsible for NestedAttrType
type FrameToken = NestedAttrTypeFrame<PartiallyApplied>
Source§fn into_frame(
self,
) -> <<NestedAttrType as Collapsible>::FrameToken as MappableFrame>::Frame<NestedAttrType>
fn into_frame( self, ) -> <<NestedAttrType as Collapsible>::FrameToken as MappableFrame>::Frame<NestedAttrType>
Given an instance of this type, generate a frame holding the data owned by it,
with any recursive instances of
Self
owned by this node as the frame elementsSource§impl Debug for NestedAttrType
impl Debug for NestedAttrType
Source§impl<'de> Deserialize<'de> for NestedAttrType
impl<'de> Deserialize<'de> for NestedAttrType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NestedAttrType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NestedAttrType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Expandable for NestedAttrType
impl Expandable for NestedAttrType
type FrameToken = NestedAttrTypeFrame<PartiallyApplied>
Source§fn from_frame(
val: <<NestedAttrType as Expandable>::FrameToken as MappableFrame>::Frame<NestedAttrType>,
) -> NestedAttrType
fn from_frame( val: <<NestedAttrType as Expandable>::FrameToken as MappableFrame>::Frame<NestedAttrType>, ) -> NestedAttrType
Given a frame holding instances of
Self
, generate an instance of Self
Source§impl Hash for NestedAttrType
impl Hash for NestedAttrType
Source§impl PartialEq for NestedAttrType
impl PartialEq for NestedAttrType
Source§impl Serialize for NestedAttrType
impl Serialize for NestedAttrType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NestedAttrType
impl StructuralPartialEq for NestedAttrType
Auto Trait Implementations§
impl Freeze for NestedAttrType
impl RefUnwindSafe for NestedAttrType
impl Send for NestedAttrType
impl Sync for NestedAttrType
impl Unpin for NestedAttrType
impl UnwindSafe for NestedAttrType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<X> CollapsibleExt for Xwhere
X: Collapsible,
impl<X> CollapsibleExt for Xwhere
X: Collapsible,
Source§fn collapse_frames<Out>(
self,
collapse_frame: impl FnMut(<<X as Collapsible>::FrameToken as MappableFrame>::Frame<Out>) -> Out,
) -> Out
fn collapse_frames<Out>( self, collapse_frame: impl FnMut(<<X as Collapsible>::FrameToken as MappableFrame>::Frame<Out>) -> Out, ) -> Out
Given an instance of this type, collapse it into a single value of type
Out
by
traversing the recursive structure of self
, generating frames, and collapsing
those frames using some function from Frame<Out> -> Out
Source§fn try_collapse_frames<Out, E>(
self,
collapse_frame: impl FnMut(<<X as Collapsible>::FrameToken as MappableFrame>::Frame<Out>) -> Result<Out, E>,
) -> Result<Out, E>
fn try_collapse_frames<Out, E>( self, collapse_frame: impl FnMut(<<X as Collapsible>::FrameToken as MappableFrame>::Frame<Out>) -> Result<Out, E>, ) -> Result<Out, E>
Given an instance of this type, collapse it into a single value of type
Result<Out, E>
by
traversing the recursive structure of self
, generating frames, and collapsing
those frames using some function from Frame<Out> -> Result<Out, E>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<X> ExpandableExt for Xwhere
X: Expandable,
impl<X> ExpandableExt for Xwhere
X: Expandable,
Source§fn expand_frames<In>(
input: In,
expand_frame: impl FnMut(In) -> <<X as Expandable>::FrameToken as MappableFrame>::Frame<In>,
) -> X
fn expand_frames<In>( input: In, expand_frame: impl FnMut(In) -> <<X as Expandable>::FrameToken as MappableFrame>::Frame<In>, ) -> X
Given a value of type
In
, expand it to generate a value of type Self
frame by frame,
using a function from In -> Frame<In>