pub struct FeedItemAttributeValue {
pub feed_attribute_id: i64,
pub integer_value: i64,
pub boolean_value: bool,
pub string_value: String,
pub double_value: f64,
pub price_value: Option<Money>,
pub integer_values: Vec<i64>,
pub boolean_values: Vec<bool>,
pub string_values: Vec<String>,
pub double_values: Vec<f64>,
}
Expand description
A feed item attribute value.
Fields§
§feed_attribute_id: i64
Id of the feed attribute for which the value is associated with.
integer_value: i64
Int64 value. Should be set if feed_attribute_id refers to a feed attribute of type INT64.
boolean_value: bool
Bool value. Should be set if feed_attribute_id refers to a feed attribute of type BOOLEAN.
string_value: String
String value. Should be set if feed_attribute_id refers to a feed attribute of type STRING, URL or DATE_TIME. For STRING the maximum length is 1500 characters. For URL the maximum length is 2076 characters. For DATE_TIME the string must be in the format “YYYYMMDD HHMMSS”.
double_value: f64
Double value. Should be set if feed_attribute_id refers to a feed attribute of type DOUBLE.
price_value: Option<Money>
Price value. Should be set if feed_attribute_id refers to a feed attribute of type PRICE.
integer_values: Vec<i64>
Repeated int64 value. Should be set if feed_attribute_id refers to a feed attribute of type INT64_LIST.
boolean_values: Vec<bool>
Repeated bool value. Should be set if feed_attribute_id refers to a feed attribute of type BOOLEAN_LIST.
string_values: Vec<String>
Repeated string value. Should be set if feed_attribute_id refers to a feed attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST. For STRING_LIST and URL_LIST the total size of the list in bytes may not exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200.
For STRING_LIST the maximum length of each string element is 1500 characters. For URL_LIST the maximum length is 2076 characters. For DATE_TIME the format of the string must be the same as start and end time for the feed item.
double_values: Vec<f64>
Repeated double value. Should be set if feed_attribute_id refers to a feed attribute of type DOUBLE_LIST.
Trait Implementations§
Source§impl Clone for FeedItemAttributeValue
impl Clone for FeedItemAttributeValue
Source§fn clone(&self) -> FeedItemAttributeValue
fn clone(&self) -> FeedItemAttributeValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FeedItemAttributeValue
impl Debug for FeedItemAttributeValue
Source§impl Default for FeedItemAttributeValue
impl Default for FeedItemAttributeValue
Source§impl Message for FeedItemAttributeValue
impl Message for FeedItemAttributeValue
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for FeedItemAttributeValue
impl PartialEq for FeedItemAttributeValue
impl StructuralPartialEq for FeedItemAttributeValue
Auto Trait Implementations§
impl Freeze for FeedItemAttributeValue
impl RefUnwindSafe for FeedItemAttributeValue
impl Send for FeedItemAttributeValue
impl Sync for FeedItemAttributeValue
impl Unpin for FeedItemAttributeValue
impl UnwindSafe for FeedItemAttributeValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request