pub struct UnionBranch {
pub tag: String,
pub body: i32,
pub discriminator: DiscriminatorRule,
pub metadata: MetadataEnvelope,
}Fields§
§tag: StringLogical branch name. Carried in union-value.tag after the
decoder resolves the branch; used by renderers, codegen, docs.
body: i32Branch body type. Any schema type compatible with the discriminator rule (see schema-construction validation above).
discriminator: DiscriminatorRuleRule the decoder uses to pick this branch from a raw value.
metadata: MetadataEnvelopeTrait Implementations§
Source§impl Clone for UnionBranch
impl Clone for UnionBranch
Source§fn clone(&self) -> UnionBranch
fn clone(&self) -> UnionBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UnionBranch
impl RefUnwindSafe for UnionBranch
impl Send for UnionBranch
impl Sync for UnionBranch
impl Unpin for UnionBranch
impl UnsafeUnpin for UnionBranch
impl UnwindSafe for UnionBranch
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