pub struct BindFormSchema {
pub ref_name: String,
pub sheet_idx: usize,
pub block_id: usize,
pub field_from: usize,
pub key_idx: usize,
pub fields: Vec<SchemaFieldSpec>,
pub row: bool,
pub header_idx: Option<usize>,
pub unique_together: Option<Vec<UniqueTogetherGroup>>,
}Fields§
§ref_name: String§sheet_idx: usize§block_id: usize§field_from: usize§key_idx: usize§fields: Vec<SchemaFieldSpec>The fields, in order along the schema’s field axis.
row: bool§header_idx: Option<usize>Index along the RECORD axis of the line that holds field NAMES rather than a record — row 0 for a table with a header row above its data.
None (the default, and what every caller sent before this existed)
means the names live only in the schema, and every line of the block is
a record. Declaring one is what makes a header travel with the block:
it is part of the block rather than a stray row above it, and it is the
schema that says so, because which line is names is a matter of how the
block is READ.
unique_together: Option<Vec<UniqueTogetherGroup>>Field-name groups whose values must not repeat in COMBINATION.
Option so a caller that predates this keeps working; absent and empty
mean the same thing. A group of fewer than two names is ignored —
single-field uniqueness is SchemaFieldSpec::unique, which already
derives its own rule.
Trait Implementations§
Source§impl Clone for BindFormSchema
impl Clone for BindFormSchema
Source§fn clone(&self) -> BindFormSchema
fn clone(&self) -> BindFormSchema
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 BindFormSchema
impl Debug for BindFormSchema
Source§impl<'de> Deserialize<'de> for BindFormSchema
impl<'de> Deserialize<'de> for BindFormSchema
Source§fn deserialize<D>(
deserializer: D,
) -> Result<BindFormSchema, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<BindFormSchema, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<BindFormSchema> for EditPayload
impl From<BindFormSchema> for EditPayload
Source§fn from(value: BindFormSchema) -> EditPayload
fn from(value: BindFormSchema) -> EditPayload
Source§impl From<_GentsDummyBindFormSchema> for BindFormSchema
impl From<_GentsDummyBindFormSchema> for BindFormSchema
Source§fn from(value: _GentsDummyBindFormSchema) -> BindFormSchema
fn from(value: _GentsDummyBindFormSchema) -> BindFormSchema
impl Payload for BindFormSchema
Source§impl Serialize for BindFormSchema
impl Serialize for BindFormSchema
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Auto Trait Implementations§
impl Freeze for BindFormSchema
impl RefUnwindSafe for BindFormSchema
impl Send for BindFormSchema
impl Sync for BindFormSchema
impl Unpin for BindFormSchema
impl UnsafeUnpin for BindFormSchema
impl UnwindSafe for BindFormSchema
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
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> 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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.