pub enum ObjectPropertiesGeneratorEnum {
Array(Vec<ObjectPropertiesGeneratorTermEnum>),
Term(ObjectPropertiesGeneratorTermEnum),
}Expand description
Non-Terminating variations for the generator field from ObjectProperties
generator isn’t functional, meaning it can be represented as either a single ObjectPropertiesGeneratorTermEnum or a vector of ObjectPropertiesGeneratorTermEnum
Variants§
Trait Implementations§
Source§impl Clone for ObjectPropertiesGeneratorEnum
impl Clone for ObjectPropertiesGeneratorEnum
Source§fn clone(&self) -> ObjectPropertiesGeneratorEnum
fn clone(&self) -> ObjectPropertiesGeneratorEnum
Returns a duplicate 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> Deserialize<'de> for ObjectPropertiesGeneratorEnum
impl<'de> Deserialize<'de> for ObjectPropertiesGeneratorEnum
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<ObjectPropertiesGeneratorTermEnum> for ObjectPropertiesGeneratorEnum
impl From<ObjectPropertiesGeneratorTermEnum> for ObjectPropertiesGeneratorEnum
Source§fn from(term: ObjectPropertiesGeneratorTermEnum) -> Self
fn from(term: ObjectPropertiesGeneratorTermEnum) -> Self
Converts to this type from the input type.
Source§impl From<Vec<ObjectPropertiesGeneratorTermEnum>> for ObjectPropertiesGeneratorEnum
impl From<Vec<ObjectPropertiesGeneratorTermEnum>> for ObjectPropertiesGeneratorEnum
Source§fn from(v: Vec<ObjectPropertiesGeneratorTermEnum>) -> Self
fn from(v: Vec<ObjectPropertiesGeneratorTermEnum>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObjectPropertiesGeneratorEnum
impl RefUnwindSafe for ObjectPropertiesGeneratorEnum
impl Send for ObjectPropertiesGeneratorEnum
impl Sync for ObjectPropertiesGeneratorEnum
impl Unpin for ObjectPropertiesGeneratorEnum
impl UnsafeUnpin for ObjectPropertiesGeneratorEnum
impl UnwindSafe for ObjectPropertiesGeneratorEnum
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