pub enum SchemaCase {
Schema(Box<SchemaObject>),
Reference(ReferenceObject<SchemaObject>),
}
Expand description
Schema Object | Reference Object
Variants§
Schema(Box<SchemaObject>)
Reference(ReferenceObject<SchemaObject>)
Implementations§
Source§impl SchemaCase
impl SchemaCase
pub fn from_yaml_map(map: YamlMap) -> Result<SchemaCase>
pub fn from_yaml_array(array: YamlArray) -> Output<Vec<SchemaCase>>
pub fn with_name(kv: (String, YamlMap)) -> Result<(ComponentName, SchemaCase)>
Trait Implementations§
Source§impl Clone for SchemaCase
impl Clone for SchemaCase
Source§fn clone(&self) -> SchemaCase
fn clone(&self) -> SchemaCase
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 Debug for SchemaCase
impl Debug for SchemaCase
Source§impl From<ArrayItems> for SchemaCase
impl From<ArrayItems> for SchemaCase
Source§fn from(xs: ArrayItems) -> Self
fn from(xs: ArrayItems) -> Self
Converts to this type from the input type.
Source§impl From<SchemaObject> for SchemaCase
impl From<SchemaObject> for SchemaCase
Source§fn from(this: SchemaObject) -> Self
fn from(this: SchemaObject) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaCase
impl RefUnwindSafe for SchemaCase
impl Send for SchemaCase
impl Sync for SchemaCase
impl Unpin for SchemaCase
impl UnwindSafe for SchemaCase
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