Struct zvariant::Structure [−][src]
pub struct Structure<'a> { /* fields omitted */ }
Expand description
A helper type to wrap structs in Value
.
API is provided to convert from, and to tuples.
Implementations
Get a reference to all the fields of self
.
Converts self
to a Vec
containing all its fields.
👎 Deprecated since 2.3.0: Please use StructureBuilder
to create a Structure
instead.
Please use StructureBuilder
to create a Structure
instead.
Create a new Structure
.
Same as Structure::default()
.
👎 Deprecated since 2.3.0: Please use StructureBuilder
to create a Structure
instead.
Please use StructureBuilder
to create a Structure
instead.
Append field
to self
.
This method returns Self
so that you can use the builder pattern to create a complex
structure.
👎 Deprecated since 2.3.0: Please use StructureBuilder
to create a Structure
instead.
Please use StructureBuilder
to create a Structure
instead.
Append field
to self
.
Identical to add_field
, except the field must be in the form of a Value
.
Get the signature of this Structure
.
NB: This method potentially allocates and copies. Use full_signature
if you’d like to
avoid that.
Get the signature of this Structure
.
Trait Implementations
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
T13: Type + Into<Value<'a>>,
T14: Type + Into<Value<'a>>,
T15: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
T13: Type + Into<Value<'a>>,
T14: Type + Into<Value<'a>>,
T15: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
T13: Type + Into<Value<'a>>,
T14: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
T13: Type + Into<Value<'a>>,
T14: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
T13: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
T13: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
T12: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
T11: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
T10: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
T9: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
T8: Type + Into<Value<'a>>,
[src]impl<'a, T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
[src]
impl<'a, T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for Structure<'a> where
T0: Type + Into<Value<'a>>,
T1: Type + Into<Value<'a>>,
T2: Type + Into<Value<'a>>,
T3: Type + Into<Value<'a>>,
T4: Type + Into<Value<'a>>,
T5: Type + Into<Value<'a>>,
T6: Type + Into<Value<'a>>,
T7: Type + Into<Value<'a>>,
[src]Auto Trait Implementations
impl<'a> RefUnwindSafe for Structure<'a>
impl<'a> UnwindSafe for Structure<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more