ObjectDataSchemaBuilder

Struct ObjectDataSchemaBuilder 

Source
pub struct ObjectDataSchemaBuilder<Inner, DS, AS, OS> {
    pub other: OS,
    /* private fields */
}
Expand description

The builder for an ObjectSchema builder.

Fields§

§other: OS

Object data schema extension.

Trait Implementations§

Source§

impl<DS, AS, OS, Inner> BuildableDataSchema<DS, AS, OS, Extended> for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: BuildableDataSchema<DS, AS, OS, Extended>,

Source§

fn unit(self, value: impl Into<String>) -> Self

Sets the value of the unit field.
Source§

fn format(self, value: impl Into<String>) -> Self

Sets the value of the format field.
Source§

fn default_value(self, value: impl Into<Value>) -> Self

Sets the value of the default field.
Source§

impl<Inner: BuildableHumanReadableInfo, DS, AS, OS> BuildableHumanReadableInfo for ObjectDataSchemaBuilder<Inner, DS, AS, OS>

Source§

fn attype(self, value: impl Into<String>) -> Self

Set JSON-LD @type Read more
Source§

fn title(self, value: impl Into<String>) -> Self

Set the title Read more
Source§

fn titles<F>(self, f: F) -> Self

Set the translations of the title Read more
Source§

fn description(self, value: impl Into<String>) -> Self

Set the description Read more
Source§

fn descriptions<F>(self, f: F) -> Self

Set the translations of the description Read more
Source§

impl<T, DS, AS, OS> From<ObjectDataSchemaBuilder<T, DS, AS, OS>> for PartialDataSchema<DS, AS, OS>
where T: Into<PartialDataSchemaBuilder<DS, AS, OS, Extended>>,

Source§

fn from(builder: ObjectDataSchemaBuilder<T, DS, AS, OS>) -> Self

Converts to this type from the input type.
Source§

impl<T, DS, AS, OS> From<ObjectDataSchemaBuilder<T, DS, AS, OS>> for UncheckedDataSchema<DS, AS, OS>
where T: Into<DataSchemaBuilder<DS, AS, OS, Extended>>,

Source§

fn from(builder: ObjectDataSchemaBuilder<T, DS, AS, OS>) -> Self

Converts to this type from the input type.
Source§

impl<Inner, DS, AS, OS> ObjectDataSchemaBuilderLike<DS, AS, OS> for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: BuildableDataSchema<DS, AS, OS, Extended>,

Source§

fn property<F, T>(self, name: impl Into<String>, required: bool, f: F) -> Self
where 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<DS, AS, OS> ReadableWriteableDataSchema<DS, AS, OS, Extended> for ObjectDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>, DS, AS, OS>

Source§

type ReadOnly = ReadOnly<ObjectDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>, DS, AS, OS>>

The read-only variant of the data schema builder.
Source§

type WriteOnly = WriteOnly<ObjectDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>, DS, AS, OS>>

The write-only variant of the data schema builder.
Source§

fn read_only(self) -> Self::ReadOnly

Creates a read-only variant of the data schema builder. Read more
Source§

fn write_only(self) -> Self::WriteOnly

Creates a write-only variant of the data schema builder. Read more
Source§

impl<DS, AS, OS> ReadableWriteableDataSchema<DS, AS, OS, Extended> for ObjectDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>, DS, AS, OS>

Source§

type ReadOnly = ReadOnly<ObjectDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>, DS, AS, OS>>

The read-only variant of the data schema builder.
Source§

type WriteOnly = WriteOnly<ObjectDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>, DS, AS, OS>>

The write-only variant of the data schema builder.
Source§

fn read_only(self) -> Self::ReadOnly

Creates a read-only variant of the data schema builder. Read more
Source§

fn write_only(self) -> Self::WriteOnly

Creates a write-only variant of the data schema builder. Read more
Source§

impl<T, DS, AS, OS> TryFrom<ObjectDataSchemaBuilder<T, DS, AS, OS>> for DataSchema<DS, AS, OS>
where T: Into<DataSchemaBuilder<DS, AS, OS, Extended>>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from( value: ObjectDataSchemaBuilder<T, DS, AS, OS>, ) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<Inner, DS, AS, OS> Freeze for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: Freeze, OS: Freeze,

§

impl<Inner, DS, AS, OS> RefUnwindSafe for ObjectDataSchemaBuilder<Inner, DS, AS, OS>

§

impl<Inner, DS, AS, OS> Send for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: Send, OS: Send, DS: Send, AS: Send,

§

impl<Inner, DS, AS, OS> Sync for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: Sync, OS: Sync, DS: Sync, AS: Sync,

§

impl<Inner, DS, AS, OS> Unpin for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: Unpin, OS: Unpin, DS: Unpin, AS: Unpin,

§

impl<Inner, DS, AS, OS> UnwindSafe for ObjectDataSchemaBuilder<Inner, DS, AS, OS>
where Inner: UnwindSafe, OS: UnwindSafe, DS: UnwindSafe, AS: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.