pub struct WriteOnly<Inner> { /* private fields */ }Expand description
A typetag for a write-only DataSchema builder.
Trait Implementations§
Source§impl<DS, AS, OS, Inner> BuildableDataSchema<DS, AS, OS, Extended> for WriteOnly<Inner>where
Inner: BuildableDataSchema<DS, AS, OS, Extended>,
impl<DS, AS, OS, Inner> BuildableDataSchema<DS, AS, OS, Extended> for WriteOnly<Inner>where
Inner: BuildableDataSchema<DS, AS, OS, Extended>,
Source§impl<Inner: BuildableHumanReadableInfo> BuildableHumanReadableInfo for WriteOnly<Inner>
impl<Inner: BuildableHumanReadableInfo> BuildableHumanReadableInfo for WriteOnly<Inner>
Source§impl<Inner, DS, AS, OS> EnumerableDataSchema<DS, AS, OS, Extended> for WriteOnly<Inner>where
Inner: EnumerableDataSchema<DS, AS, OS, Extended>,
impl<Inner, DS, AS, OS> EnumerableDataSchema<DS, AS, OS, Extended> for WriteOnly<Inner>where
Inner: EnumerableDataSchema<DS, AS, OS, Extended>,
Source§impl<T, DS, AS, OS> From<WriteOnly<T>> for PartialDataSchema<DS, AS, OS>where
T: Into<PartialDataSchema<DS, AS, OS>>,
impl<T, DS, AS, OS> From<WriteOnly<T>> for PartialDataSchema<DS, AS, OS>where
T: Into<PartialDataSchema<DS, AS, OS>>,
Source§impl<T, DS, AS, OS> From<WriteOnly<T>> for UncheckedDataSchema<DS, AS, OS>where
T: Into<UncheckedDataSchema<DS, AS, OS>>,
impl<T, DS, AS, OS> From<WriteOnly<T>> for UncheckedDataSchema<DS, AS, OS>where
T: Into<UncheckedDataSchema<DS, AS, OS>>,
Source§impl<DS, AS, OS, Innner: IntegerDataSchemaBuilderLike<DS, AS, OS>> IntegerDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
impl<DS, AS, OS, Innner: IntegerDataSchemaBuilderLike<DS, AS, OS>> IntegerDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
Source§fn exclusive_minimum(self, value: i64) -> Self
fn exclusive_minimum(self, value: i64) -> Self
Sets the value of the
exclusive_minimum field.Source§fn exclusive_maximum(self, value: i64) -> Self
fn exclusive_maximum(self, value: i64) -> Self
Sets the value of the
exclusive_maximum field.Source§fn multiple_of(self, value: NonZeroU64) -> Self
fn multiple_of(self, value: NonZeroU64) -> Self
Sets the value of the
multiple_of field.Source§impl<DS, AS, OS, Innner: NumberDataSchemaBuilderLike<DS, AS, OS>> NumberDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
impl<DS, AS, OS, Innner: NumberDataSchemaBuilderLike<DS, AS, OS>> NumberDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
Source§fn exclusive_minimum(self, value: f64) -> Self
fn exclusive_minimum(self, value: f64) -> Self
Sets the value of the
exclusive_minimum field.Source§fn exclusive_maximum(self, value: f64) -> Self
fn exclusive_maximum(self, value: f64) -> Self
Sets the value of the
exclusive_maximum field.Source§fn multiple_of(self, value: f64) -> Self
fn multiple_of(self, value: f64) -> Self
Sets the value of the
multiple_of field.Source§impl<DS, AS, OS, Innner: ObjectDataSchemaBuilderLike<DS, AS, OS>> ObjectDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
impl<DS, AS, OS, Innner: ObjectDataSchemaBuilderLike<DS, AS, OS>> ObjectDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
Source§fn property<F, T>(self, name: impl Into<String>, required: bool, f: F) -> Selfwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
fn property<F, T>(self, name: impl Into<String>, required: bool, f: F) -> Selfwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
Add a new property to the object. Read more
Source§impl<T, DS, AS, OS> TryFrom<WriteOnly<T>> for DataSchema<DS, AS, OS>where
T: Into<UncheckedDataSchema<DS, AS, OS>>,
impl<T, DS, AS, OS> TryFrom<WriteOnly<T>> for DataSchema<DS, AS, OS>where
T: Into<UncheckedDataSchema<DS, AS, OS>>,
Source§impl<DS, AS, OS, Innner: TupleDataSchemaBuilderLike<DS, AS, OS>> TupleDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
impl<DS, AS, OS, Innner: TupleDataSchemaBuilderLike<DS, AS, OS>> TupleDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
Source§fn append<F, T>(self, f: F) -> Selfwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
fn append<F, T>(self, f: F) -> Selfwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
Append an element to the tuple of inner data schemas. Read more
Source§impl<Inner, DS, AS, OS> UnionDataSchema<DS, AS, OS> for WriteOnly<Inner>where
Inner: UnionDataSchema<DS, AS, OS>,
impl<Inner, DS, AS, OS> UnionDataSchema<DS, AS, OS> for WriteOnly<Inner>where
Inner: UnionDataSchema<DS, AS, OS>,
Source§type Target = WriteOnly<<Inner as UnionDataSchema<DS, AS, OS>>::Target>
type Target = WriteOnly<<Inner as UnionDataSchema<DS, AS, OS>>::Target>
The union specialization of the data schema builder.
Source§fn one_of<F, T>(self, f: F) -> Self::Targetwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
fn one_of<F, T>(self, f: F) -> Self::Targetwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
Returns a specialized union data schema and adds a data schema to the
one_of field. It
can be implemented for specialized one_of data schemas. Read moreSource§impl<DS, AS, OS, Innner: VecDataSchemaBuilderLike<DS, AS, OS>> VecDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
impl<DS, AS, OS, Innner: VecDataSchemaBuilderLike<DS, AS, OS>> VecDataSchemaBuilderLike<DS, AS, OS> for WriteOnly<Innner>
Source§fn set_item<F, T>(self, f: F) -> Selfwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
fn set_item<F, T>(self, f: F) -> Selfwhere
F: FnOnce(DataSchemaBuilder<<DS as Extendable>::Empty, AS, OS, ToExtend>) -> T,
DS: Extendable,
T: Into<UncheckedDataSchema<DS, AS, OS>>,
Sets the data schema of the underlying type. Read more
Auto Trait Implementations§
impl<Inner> Freeze for WriteOnly<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for WriteOnly<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for WriteOnly<Inner>where
Inner: Send,
impl<Inner> Sync for WriteOnly<Inner>where
Inner: Sync,
impl<Inner> Unpin for WriteOnly<Inner>where
Inner: Unpin,
impl<Inner> UnwindSafe for WriteOnly<Inner>where
Inner: UnwindSafe,
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