pub struct BoundPartitionField<'a> { /* private fields */ }
Expand description
A partition field bound to its source schema field, providing access to both partition and source field information. This allows accessing the partition field definition along with the schema field it references.
Implementations§
Source§impl<'a> BoundPartitionField<'a>
impl<'a> BoundPartitionField<'a>
Sourcepub fn new(
partition_field: &'a PartitionField,
struct_field: &'a StructField,
) -> Self
pub fn new( partition_field: &'a PartitionField, struct_field: &'a StructField, ) -> Self
Creates a new BoundPartitionField by binding together a partition field with its corresponding schema field.
§Arguments
partition_field
- The partition field definitionstruct_field
- The source schema field that this partition is derived from
Sourcepub fn source_name(&self) -> &str
pub fn source_name(&self) -> &str
Name of source field
Sourcepub fn field_type(&self) -> &Type
pub fn field_type(&self) -> &Type
Datatype of source field
Sourcepub fn partition_field(&self) -> &PartitionField
pub fn partition_field(&self) -> &PartitionField
Partition field
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BoundPartitionField<'a>
impl<'a> RefUnwindSafe for BoundPartitionField<'a>
impl<'a> Send for BoundPartitionField<'a>
impl<'a> Sync for BoundPartitionField<'a>
impl<'a> Unpin for BoundPartitionField<'a>
impl<'a> UnwindSafe for BoundPartitionField<'a>
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> 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