#[non_exhaustive]pub struct FieldDefinition {
pub name: String,
pub field_data_type: FieldDataType,
pub response_date_format: Option<String>,
pub is_partitionable: Option<bool>,
pub is_nullable: Option<bool>,
pub is_queryable: Option<bool>,
pub is_orderable: Option<bool>,
pub filter_overrides: Option<FilterOverrides>,
}Expand description
Defines a field in an entity schema for REST connector data sources, specifying the field name and data type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the field in the entity schema.
field_data_type: FieldDataTypeThe data type of the field.
response_date_format: Option<String>The format pattern for parsing date values from API responses. Required when the API uses a non-ISO-8601 format. Accepts Java DateTimeFormatter patterns (for example, EEE, d MMM yyyy HH:mm:ss Z), EPOCH_SECONDS for Unix epoch seconds, or EPOCH_MILLIS for Unix epoch milliseconds.
is_partitionable: Option<bool>Indicates whether this field can be used for partitioning queries to the data source.
is_nullable: Option<bool>Indicates whether this field can contain null values.
is_queryable: Option<bool>Indicates whether this field can be used in filter predicates when querying data.
is_orderable: Option<bool>Indicates whether this field can be used for ordering results.
filter_overrides: Option<FilterOverrides>Per-field overrides for filter behavior, allowing customization of how filters are applied to this specific field.
Implementations§
Source§impl FieldDefinition
impl FieldDefinition
Sourcepub fn field_data_type(&self) -> &FieldDataType
pub fn field_data_type(&self) -> &FieldDataType
The data type of the field.
Sourcepub fn response_date_format(&self) -> Option<&str>
pub fn response_date_format(&self) -> Option<&str>
The format pattern for parsing date values from API responses. Required when the API uses a non-ISO-8601 format. Accepts Java DateTimeFormatter patterns (for example, EEE, d MMM yyyy HH:mm:ss Z), EPOCH_SECONDS for Unix epoch seconds, or EPOCH_MILLIS for Unix epoch milliseconds.
Sourcepub fn is_partitionable(&self) -> Option<bool>
pub fn is_partitionable(&self) -> Option<bool>
Indicates whether this field can be used for partitioning queries to the data source.
Sourcepub fn is_nullable(&self) -> Option<bool>
pub fn is_nullable(&self) -> Option<bool>
Indicates whether this field can contain null values.
Sourcepub fn is_queryable(&self) -> Option<bool>
pub fn is_queryable(&self) -> Option<bool>
Indicates whether this field can be used in filter predicates when querying data.
Sourcepub fn is_orderable(&self) -> Option<bool>
pub fn is_orderable(&self) -> Option<bool>
Indicates whether this field can be used for ordering results.
Sourcepub fn filter_overrides(&self) -> Option<&FilterOverrides>
pub fn filter_overrides(&self) -> Option<&FilterOverrides>
Per-field overrides for filter behavior, allowing customization of how filters are applied to this specific field.
Source§impl FieldDefinition
impl FieldDefinition
Sourcepub fn builder() -> FieldDefinitionBuilder
pub fn builder() -> FieldDefinitionBuilder
Creates a new builder-style object to manufacture FieldDefinition.
Trait Implementations§
Source§impl Clone for FieldDefinition
impl Clone for FieldDefinition
Source§fn clone(&self) -> FieldDefinition
fn clone(&self) -> FieldDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FieldDefinition
impl Debug for FieldDefinition
Source§impl PartialEq for FieldDefinition
impl PartialEq for FieldDefinition
impl StructuralPartialEq for FieldDefinition
Auto Trait Implementations§
impl Freeze for FieldDefinition
impl RefUnwindSafe for FieldDefinition
impl Send for FieldDefinition
impl Sync for FieldDefinition
impl Unpin for FieldDefinition
impl UnsafeUnpin for FieldDefinition
impl UnwindSafe for FieldDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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> ⓘ
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> ⓘ
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