pub struct LabelField {
pub date_string: Option<Vec<NaiveDate>>,
pub id: Option<String>,
pub integer: Option<Vec<i64>>,
pub kind: Option<String>,
pub selection: Option<Vec<String>>,
pub text: Option<Vec<String>>,
pub user: Option<Vec<User>>,
pub value_type: Option<String>,
}Expand description
Representation of field, which is a typed key-value pair.
This type is not used in any activity, and only used as part of another schema.
Fields§
§date_string: Option<Vec<NaiveDate>>Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
id: Option<String>The identifier of this label field.
integer: Option<Vec<i64>>Only present if valueType is integer.
kind: Option<String>This is always drive#labelField.
selection: Option<Vec<String>>Only present if valueType is selection
text: Option<Vec<String>>Only present if valueType is text.
user: Option<Vec<User>>Only present if valueType is user.
value_type: Option<String>The field type. While new values may be supported in the future, the following are currently allowed: * dateString * integer * selection * text * user
Trait Implementations§
Source§impl Clone for LabelField
impl Clone for LabelField
Source§fn clone(&self) -> LabelField
fn clone(&self) -> LabelField
Returns a duplicate 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 LabelField
impl Debug for LabelField
Source§impl Default for LabelField
impl Default for LabelField
Source§fn default() -> LabelField
fn default() -> LabelField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LabelField
impl<'de> Deserialize<'de> for LabelField
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 LabelField
impl Serialize for LabelField
impl Part for LabelField
Auto Trait Implementations§
impl Freeze for LabelField
impl RefUnwindSafe for LabelField
impl Send for LabelField
impl Sync for LabelField
impl Unpin for LabelField
impl UnwindSafe for LabelField
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