Enum utoipa::openapi::schema::AdditionalProperties
source · 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<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<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.