Struct google_docs1::api::OptionalColor
source · pub struct OptionalColor {
pub color: Option<Color>,
}
Expand description
A color that can either be fully opaque or fully transparent.
This type is not used in any activity, and only used as part of another schema.
Fields§
§color: Option<Color>
If set, this will be used as an opaque color. If unset, this represents a transparent color.
Trait Implementations§
source§impl Clone for OptionalColor
impl Clone for OptionalColor
source§fn clone(&self) -> OptionalColor
fn clone(&self) -> OptionalColor
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 OptionalColor
impl Debug for OptionalColor
source§impl Default for OptionalColor
impl Default for OptionalColor
source§fn default() -> OptionalColor
fn default() -> OptionalColor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OptionalColor
impl<'de> Deserialize<'de> for OptionalColor
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 OptionalColor
impl Serialize for OptionalColor
impl Part for OptionalColor
Auto Trait Implementations§
impl RefUnwindSafe for OptionalColor
impl Send for OptionalColor
impl Sync for OptionalColor
impl Unpin for OptionalColor
impl UnwindSafe for OptionalColor
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