Struct google_drive3::api::LabelField
source · 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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more