pub struct Product {Show 30 fields
pub id: String,
pub user_id: String,
pub title: String,
pub category: String,
pub subcategory: String,
pub has_variations: bool,
pub brand_name: Option<String>,
pub has_brand_name: bool,
pub product_id: Option<String>,
pub has_product_id: bool,
pub product_id_type: Option<String>,
pub description: String,
pub bullet_points: Vec<ProductBulletPoint>,
pub currency_code: String,
pub fulfillment_type: String,
pub processing_time: u64,
pub details: Option<ProductDetails>,
pub media: Option<ProductMedia>,
pub offer: Option<ProductOffer>,
pub safety: Option<ProductSafety>,
pub tags: Vec<ProductTag>,
pub metadata: Option<ProductMetadata>,
pub ar_enabled: bool,
pub slug: String,
pub status: String,
pub version: u32,
pub schema_version: u32,
pub created_at: u64,
pub published_at: Option<u64>,
pub updated_at: Option<u64>,
}Fields§
§id: String§user_id: String§title: String§category: String§subcategory: String§has_variations: bool§brand_name: Option<String>§has_brand_name: bool§product_id: Option<String>§has_product_id: bool§product_id_type: Option<String>§description: String§bullet_points: Vec<ProductBulletPoint>§currency_code: String§fulfillment_type: String§processing_time: u64§details: Option<ProductDetails>§media: Option<ProductMedia>§offer: Option<ProductOffer>§safety: Option<ProductSafety>§metadata: Option<ProductMetadata>§ar_enabled: bool§slug: String§status: String§version: u32§schema_version: u32§created_at: u64§published_at: Option<u64>§updated_at: Option<u64>Implementations§
Source§impl Product
impl Product
Sourcepub fn brand_name(&self) -> &str
pub fn brand_name(&self) -> &str
Returns the value of brand_name, or the default value if brand_name is unset.
Sourcepub fn product_id(&self) -> &str
pub fn product_id(&self) -> &str
Returns the value of product_id, or the default value if product_id is unset.
Sourcepub fn product_id_type(&self) -> &str
pub fn product_id_type(&self) -> &str
Returns the value of product_id_type, or the default value if product_id_type is unset.
Sourcepub fn published_at(&self) -> u64
pub fn published_at(&self) -> u64
Returns the value of published_at, or the default value if published_at is unset.
Sourcepub fn updated_at(&self) -> u64
pub fn updated_at(&self) -> u64
Returns the value of updated_at, or the default value if updated_at is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Product
impl<'de> Deserialize<'de> for Product
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 Product
impl Message for Product
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.impl StructuralPartialEq for Product
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnwindSafe for Product
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<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>
Wrap the input message
T in a tonic::Request