Struct google_content2::api::CustomAttribute
source · pub struct CustomAttribute {
pub name: Option<String>,
pub type_: Option<String>,
pub unit: Option<String>,
pub value: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§name: Option<String>
The name of the attribute. Underscores will be replaced by spaces upon insertion.
type_: Option<String>
The type of the attribute. Acceptable values are: - “boolean
” - “datetimerange
” - “float
” - “group
” - “int
” - “price
” - “text
” - “time
” - “url
”
unit: Option<String>
Free-form unit of the attribute. Unit can only be used for values of type int, float, or price.
value: Option<String>
The value of the attribute.
Trait Implementations§
source§impl Clone for CustomAttribute
impl Clone for CustomAttribute
source§fn clone(&self) -> CustomAttribute
fn clone(&self) -> CustomAttribute
Returns a copy of the value. Read more
1.0.0 · 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 CustomAttribute
impl Debug for CustomAttribute
source§impl Default for CustomAttribute
impl Default for CustomAttribute
source§fn default() -> CustomAttribute
fn default() -> CustomAttribute
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CustomAttribute
impl<'de> Deserialize<'de> for CustomAttribute
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 Serialize for CustomAttribute
impl Serialize for CustomAttribute
impl Part for CustomAttribute
Auto Trait Implementations§
impl RefUnwindSafe for CustomAttribute
impl Send for CustomAttribute
impl Sync for CustomAttribute
impl Unpin for CustomAttribute
impl UnwindSafe for CustomAttribute
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