pub struct ProductDelivery {
pub product_types: Vec<i32>,
pub chipout_triggers: Vec<i32>,
pub chipout_config: Option<ChipoutConfig>,
pub track_reporting: Option<TrackReportingConfig>,
pub batching: Option<BatchingConfig>,
}Expand description
Product delivery configuration
Fields§
§product_types: Vec<i32>Which product types to generate
chipout_triggers: Vec<i32>When to generate image chipouts
chipout_config: Option<ChipoutConfig>Chipout configuration
track_reporting: Option<TrackReportingConfig>Track update frequency
batching: Option<BatchingConfig>Batching configuration (for bandwidth optimization)
Implementations§
Source§impl ProductDelivery
impl ProductDelivery
Sourcepub fn product_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ProductType>>
pub fn product_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ProductType>>
Returns an iterator which yields the valid enum values contained in product_types.
Sourcepub fn push_product_types(&mut self, value: ProductType)
pub fn push_product_types(&mut self, value: ProductType)
Appends the provided enum value to product_types.
Sourcepub fn chipout_triggers(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ImageTrigger>>
pub fn chipout_triggers( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ImageTrigger>>
Returns an iterator which yields the valid enum values contained in chipout_triggers.
Sourcepub fn push_chipout_triggers(&mut self, value: ImageTrigger)
pub fn push_chipout_triggers(&mut self, value: ImageTrigger)
Appends the provided enum value to chipout_triggers.
Trait Implementations§
Source§impl Clone for ProductDelivery
impl Clone for ProductDelivery
Source§fn clone(&self) -> ProductDelivery
fn clone(&self) -> ProductDelivery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductDelivery
impl Debug for ProductDelivery
Source§impl Default for ProductDelivery
impl Default for ProductDelivery
Source§impl<'de> Deserialize<'de> for ProductDelivery
impl<'de> Deserialize<'de> for ProductDelivery
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 Message for ProductDelivery
impl Message for ProductDelivery
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ProductDelivery
impl PartialEq for ProductDelivery
Source§impl Serialize for ProductDelivery
impl Serialize for ProductDelivery
impl StructuralPartialEq for ProductDelivery
Auto Trait Implementations§
impl Freeze for ProductDelivery
impl RefUnwindSafe for ProductDelivery
impl Send for ProductDelivery
impl Sync for ProductDelivery
impl Unpin for ProductDelivery
impl UnsafeUnpin for ProductDelivery
impl UnwindSafe for ProductDelivery
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