pub enum AdditionalProperties<T> {
RefOr(RefOr<T>),
FreeForm(bool),
}
Expand description
Variants§
RefOr(RefOr<T>)
FreeForm(bool)
Use AdditionalProperties::FreeForm(true)
when any value is allowed in the map.
Trait Implementations§
Source§impl<T: Clone> Clone for AdditionalProperties<T>
impl<T: Clone> Clone for AdditionalProperties<T>
Source§fn clone(&self) -> AdditionalProperties<T>
fn clone(&self) -> AdditionalProperties<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de, T> Deserialize<'de> for AdditionalProperties<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for AdditionalProperties<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AllOfBuilder> for AdditionalProperties<Schema>
impl From<AllOfBuilder> for AdditionalProperties<Schema>
Source§fn from(value: AllOfBuilder) -> Self
fn from(value: AllOfBuilder) -> Self
Converts to this type from the input type.
Source§impl From<ArrayBuilder> for AdditionalProperties<Schema>
impl From<ArrayBuilder> for AdditionalProperties<Schema>
Source§fn from(value: ArrayBuilder) -> Self
fn from(value: ArrayBuilder) -> Self
Converts to this type from the input type.
Source§impl From<ObjectBuilder> for AdditionalProperties<Schema>
impl From<ObjectBuilder> for AdditionalProperties<Schema>
Source§fn from(value: ObjectBuilder) -> Self
fn from(value: ObjectBuilder) -> Self
Converts to this type from the input type.
Source§impl From<RefBuilder> for AdditionalProperties<Schema>
impl From<RefBuilder> for AdditionalProperties<Schema>
Source§fn from(value: RefBuilder) -> Self
fn from(value: RefBuilder) -> Self
Converts to this type from the input type.
Source§impl<T> From<RefOr<T>> for AdditionalProperties<T>
impl<T> From<RefOr<T>> for AdditionalProperties<T>
Source§impl<T: PartialEq> PartialEq for AdditionalProperties<T>
impl<T: PartialEq> PartialEq for AdditionalProperties<T>
Source§impl<T> Serialize for AdditionalProperties<T>where
T: Serialize,
impl<T> Serialize for AdditionalProperties<T>where
T: Serialize,
impl<T: Eq> Eq for AdditionalProperties<T>
impl<T> StructuralPartialEq for AdditionalProperties<T>
Auto Trait Implementations§
impl<T> Freeze for AdditionalProperties<T>where
T: Freeze,
impl<T> RefUnwindSafe for AdditionalProperties<T>where
T: RefUnwindSafe,
impl<T> Send for AdditionalProperties<T>where
T: Send,
impl<T> Sync for AdditionalProperties<T>where
T: Sync,
impl<T> Unpin for AdditionalProperties<T>where
T: Unpin,
impl<T> UnwindSafe for AdditionalProperties<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.