#[non_exhaustive]pub struct OutputAttributeBuilder { /* private fields */ }
Expand description
A builder for OutputAttribute
.
Implementations§
source§impl OutputAttributeBuilder
impl OutputAttributeBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name of a column to be written to the output. This must be an InputField
name in the schema mapping.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name of a column to be written to the output. This must be an InputField
name in the schema mapping.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A name of a column to be written to the output. This must be an InputField
name in the schema mapping.
sourcepub fn hashed(self, input: bool) -> Self
pub fn hashed(self, input: bool) -> Self
Enables the ability to hash the column values in the output.
sourcepub fn set_hashed(self, input: Option<bool>) -> Self
pub fn set_hashed(self, input: Option<bool>) -> Self
Enables the ability to hash the column values in the output.
sourcepub fn get_hashed(&self) -> &Option<bool>
pub fn get_hashed(&self) -> &Option<bool>
Enables the ability to hash the column values in the output.
sourcepub fn build(self) -> Result<OutputAttribute, BuildError>
pub fn build(self) -> Result<OutputAttribute, BuildError>
Consumes the builder and constructs a OutputAttribute
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OutputAttributeBuilder
impl Clone for OutputAttributeBuilder
source§fn clone(&self) -> OutputAttributeBuilder
fn clone(&self) -> OutputAttributeBuilder
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 OutputAttributeBuilder
impl Debug for OutputAttributeBuilder
source§impl Default for OutputAttributeBuilder
impl Default for OutputAttributeBuilder
source§fn default() -> OutputAttributeBuilder
fn default() -> OutputAttributeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OutputAttributeBuilder
impl PartialEq for OutputAttributeBuilder
source§fn eq(&self, other: &OutputAttributeBuilder) -> bool
fn eq(&self, other: &OutputAttributeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OutputAttributeBuilder
Auto Trait Implementations§
impl Freeze for OutputAttributeBuilder
impl RefUnwindSafe for OutputAttributeBuilder
impl Send for OutputAttributeBuilder
impl Sync for OutputAttributeBuilder
impl Unpin for OutputAttributeBuilder
impl UnwindSafe for OutputAttributeBuilder
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> 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>
Creates a shared type from an unshared type.