pub struct Encoding {
pub x: Channel,
pub y: Channel,
pub color: Option<Channel>,
pub x_offset: Option<Value>,
}Fields§
§x: Channel§y: Channel§color: Option<Channel>§x_offset: Option<Value>Accepted by the grammar only so validation can reject it with a helpful
redirect (grouping is expressed with color). Typed as a raw Value,
not a Channel: Vega-Lite emits several xOffset shapes ({"field": …},
{"value": …}, band configs) and a strict Channel would bounce them
into serde’s generic unknown-field error before validation could help.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Encoding
impl<'de> Deserialize<'de> for Encoding
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
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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