pub struct UnionSpec {
pub branches: Vec<UnionBranch>,
}Expand description
An inferred-tag sum governed by the canonical portable pair-classification contract.
Under that contract, all guaranteed non-regex overlaps and byte-identical regex text are rejected. Other regex-containing string-rule pairs are accepted as indeterminate because SDK regex dialects differ; runtime decoding still rejects a value that matches multiple branches.
Fields§
§branches: Vec<UnionBranch>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnionSpec
impl<'de> Deserialize<'de> for UnionSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnionSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnionSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnionSpec
Source§impl FromSchema for UnionSpec
impl FromSchema for UnionSpec
fn from_value(value: &SchemaValue) -> Result<UnionSpec, FromSchemaError>
Source§impl IntoSchema for UnionSpec
impl IntoSchema for UnionSpec
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl Serialize for UnionSpec
impl Serialize for UnionSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UnionSpec
Auto Trait Implementations§
impl Freeze for UnionSpec
impl RefUnwindSafe for UnionSpec
impl Send for UnionSpec
impl Sync for UnionSpec
impl Unpin for UnionSpec
impl UnsafeUnpin for UnionSpec
impl UnwindSafe for UnionSpec
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