Skip to main content

AttributeReads

Trait AttributeReads 

Source
pub trait AttributeReads: SealedAttributeReads {
    type Values;
}
Expand description

Lists the Attribute reads of one Client::get_attributes call as a tuple.

Since 1.31.0.

Tuples of 1 to 12 AttributeRead values implement this trait. Each tuple element is usually a reference, such as &ORDER_STATUS or &NOTES.instance("n1"). The call returns a tuple of the same arity whose elements are Option<T>. Pass a one-element tuple, such as (&ORDER_STATUS,), to read one Attribute. Pass more than 12 reads by making several calls. The empty tuple () does not implement this trait, so a call needs at least one read. Applications cannot implement this trait. See Client::get_attributes for an example.

Required Associated Types§

Source

type Values

The tuple of decoded values, with one Option<T> per read in read order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead, Read6: AttributeRead, Read7: AttributeRead, Read8: AttributeRead, Read9: AttributeRead, Read10: AttributeRead, Read11: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5, Read6, Read7, Read8, Read9, Read10, Read11)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>, Option<<Read6 as AttributeRead>::Value>, Option<<Read7 as AttributeRead>::Value>, Option<<Read8 as AttributeRead>::Value>, Option<<Read9 as AttributeRead>::Value>, Option<<Read10 as AttributeRead>::Value>, Option<<Read11 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead, Read6: AttributeRead, Read7: AttributeRead, Read8: AttributeRead, Read9: AttributeRead, Read10: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5, Read6, Read7, Read8, Read9, Read10)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>, Option<<Read6 as AttributeRead>::Value>, Option<<Read7 as AttributeRead>::Value>, Option<<Read8 as AttributeRead>::Value>, Option<<Read9 as AttributeRead>::Value>, Option<<Read10 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead, Read6: AttributeRead, Read7: AttributeRead, Read8: AttributeRead, Read9: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5, Read6, Read7, Read8, Read9)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>, Option<<Read6 as AttributeRead>::Value>, Option<<Read7 as AttributeRead>::Value>, Option<<Read8 as AttributeRead>::Value>, Option<<Read9 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead, Read6: AttributeRead, Read7: AttributeRead, Read8: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5, Read6, Read7, Read8)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>, Option<<Read6 as AttributeRead>::Value>, Option<<Read7 as AttributeRead>::Value>, Option<<Read8 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead, Read6: AttributeRead, Read7: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5, Read6, Read7)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>, Option<<Read6 as AttributeRead>::Value>, Option<<Read7 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead, Read6: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5, Read6)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>, Option<<Read6 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead, Read5: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4, Read5)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>, Option<<Read5 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead, Read4: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3, Read4)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>, Option<<Read4 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead, Read3: AttributeRead> AttributeReads for (Read0, Read1, Read2, Read3)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>, Option<<Read3 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead, Read2: AttributeRead> AttributeReads for (Read0, Read1, Read2)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>, Option<<Read2 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead, Read1: AttributeRead> AttributeReads for (Read0, Read1)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>, Option<<Read1 as AttributeRead>::Value>)

Source§

impl<Read0: AttributeRead> AttributeReads for (Read0,)

Source§

type Values = (Option<<Read0 as AttributeRead>::Value>,)

Implementors§