pub enum BackgroundValue {
Color(String),
Single(BackgroundEntry),
Multiple(Vec<BackgroundEntry>),
}Expand description
The unified background field: color string, single entry, or multiple entries.
Variants§
Trait Implementations§
Source§impl Clone for BackgroundValue
impl Clone for BackgroundValue
Source§fn clone(&self) -> BackgroundValue
fn clone(&self) -> BackgroundValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundValue
impl Debug for BackgroundValue
Source§impl JsonSchema for BackgroundValue
See BackgroundEntry’s JsonSchema impl doc comment — same reason:
deserialize_background_value is a hand-written deserialize_with, not
a derive, so there is no schema for schemars to infer without this.
impl JsonSchema for BackgroundValue
See BackgroundEntry’s JsonSchema impl doc comment — same reason:
deserialize_background_value is a hand-written deserialize_with, not
a derive, so there is no schema for schemars to infer without this.
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for BackgroundValue
impl RefUnwindSafe for BackgroundValue
impl Send for BackgroundValue
impl Sync for BackgroundValue
impl Unpin for BackgroundValue
impl UnsafeUnpin for BackgroundValue
impl UnwindSafe for BackgroundValue
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> 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