Enum mz_storage_client::types::sources::encoding::ColumnSpec
source · Expand description
Determines the RelationDesc and decoding of CSV objects
Variants§
Count(usize)
The first row is not a header row, and all columns get default names like columnN
.
Header
The first row is a header row and therefore does become data
Each of the values in names
becomes the default name of a column in the dataflow.
Implementations§
Trait Implementations§
source§impl Arbitrary for ColumnSpec
impl Arbitrary for ColumnSpec
§type Parameters = (<usize as Arbitrary>::Parameters, <Vec<String, Global> as Arbitrary>::Parameters)
type Parameters = (<usize as Arbitrary>::Parameters, <Vec<String, Global> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Union<BoxedStrategy<ColumnSpec>>
type Strategy = Union<BoxedStrategy<ColumnSpec>>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for ColumnSpec
impl Clone for ColumnSpec
source§fn clone(&self) -> ColumnSpec
fn clone(&self) -> ColumnSpec
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 ColumnSpec
impl Debug for ColumnSpec
source§impl<'de> Deserialize<'de> for ColumnSpec
impl<'de> Deserialize<'de> for ColumnSpec
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 PartialEq<ColumnSpec> for ColumnSpec
impl PartialEq<ColumnSpec> for ColumnSpec
source§fn eq(&self, other: &ColumnSpec) -> bool
fn eq(&self, other: &ColumnSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RustType<ProtoColumnSpec> for ColumnSpec
impl RustType<ProtoColumnSpec> for ColumnSpec
source§fn into_proto(&self) -> ProtoColumnSpec
fn into_proto(&self) -> ProtoColumnSpec
Convert a
Self
into a Proto
value.source§fn from_proto(proto: ProtoColumnSpec) -> Result<Self, TryFromProtoError>
fn from_proto(proto: ProtoColumnSpec) -> Result<Self, TryFromProtoError>
source§impl Serialize for ColumnSpec
impl Serialize for ColumnSpec
impl Eq for ColumnSpec
impl StructuralEq for ColumnSpec
impl StructuralPartialEq for ColumnSpec
Auto Trait Implementations§
impl RefUnwindSafe for ColumnSpec
impl Send for ColumnSpec
impl Sync for ColumnSpec
impl Unpin for ColumnSpec
impl UnwindSafe for ColumnSpec
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.