#[non_exhaustive]pub struct ArrowSerializationOptions {
pub buffer_compression: CompressionCodec,
pub picos_timestamp_precision: PicosTimestampPrecision,
/* private fields */
}Expand description
Contains options specific to Arrow Serialization.
This feature is not yet available.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.buffer_compression: CompressionCodecThe compression codec to use for Arrow buffers in serialized record batches.
picos_timestamp_precision: PicosTimestampPrecisionOptional. Set timestamp precision option. If not set, the default precision is microseconds.
Implementations§
Source§impl ArrowSerializationOptions
impl ArrowSerializationOptions
Sourcepub fn set_buffer_compression<T: Into<CompressionCodec>>(self, v: T) -> Self
pub fn set_buffer_compression<T: Into<CompressionCodec>>(self, v: T) -> Self
Sets the value of buffer_compression.
§Example
ⓘ
use google_cloud_bigquery_v2::model::arrow_serialization_options::CompressionCodec;
let x0 = ArrowSerializationOptions::new().set_buffer_compression(CompressionCodec::Lz4Frame);
let x1 = ArrowSerializationOptions::new().set_buffer_compression(CompressionCodec::Zstd);Sourcepub fn set_picos_timestamp_precision<T: Into<PicosTimestampPrecision>>(
self,
v: T,
) -> Self
pub fn set_picos_timestamp_precision<T: Into<PicosTimestampPrecision>>( self, v: T, ) -> Self
Sets the value of picos_timestamp_precision.
§Example
ⓘ
use google_cloud_bigquery_v2::model::arrow_serialization_options::PicosTimestampPrecision;
let x0 = ArrowSerializationOptions::new().set_picos_timestamp_precision(PicosTimestampPrecision::TimestampPrecisionMicros);
let x1 = ArrowSerializationOptions::new().set_picos_timestamp_precision(PicosTimestampPrecision::TimestampPrecisionNanos);
let x2 = ArrowSerializationOptions::new().set_picos_timestamp_precision(PicosTimestampPrecision::TimestampPrecisionPicos);Trait Implementations§
Source§impl Clone for ArrowSerializationOptions
impl Clone for ArrowSerializationOptions
Source§fn clone(&self) -> ArrowSerializationOptions
fn clone(&self) -> ArrowSerializationOptions
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 ArrowSerializationOptions
impl Debug for ArrowSerializationOptions
Source§impl Default for ArrowSerializationOptions
impl Default for ArrowSerializationOptions
Source§fn default() -> ArrowSerializationOptions
fn default() -> ArrowSerializationOptions
Returns the “default value” for a type. Read more
Source§impl Message for ArrowSerializationOptions
impl Message for ArrowSerializationOptions
impl StructuralPartialEq for ArrowSerializationOptions
Auto Trait Implementations§
impl Freeze for ArrowSerializationOptions
impl RefUnwindSafe for ArrowSerializationOptions
impl Send for ArrowSerializationOptions
impl Sync for ArrowSerializationOptions
impl Unpin for ArrowSerializationOptions
impl UnsafeUnpin for ArrowSerializationOptions
impl UnwindSafe for ArrowSerializationOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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