[][src]Struct atelier_core::model::builder::UnionBuilder

pub struct UnionBuilder { /* fields omitted */ }

Builder for ShapeBody::Union shapes.

Implementations

impl UnionBuilder[src]

pub fn new(id: &str) -> Self[src]

Construct a new shape builder, with id.

pub fn member(&mut self, id: &str, id_ref: &str) -> &mut Self[src]

Add a member named id, as a reference to the shape id_ref to this shape.

pub fn add_member(&mut self, member: Member) -> &mut Self[src]

Add member to this shape.

pub fn blob(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn boolean(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn document(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn string(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn byte(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn short(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn integer(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn long(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn float(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn double(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn big_integer(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn big_decimal(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn timestamp(&mut self, id: &str) -> &mut Self[src]

Add a member named id, with a reference to the corresponding simple shape, to this shape.

pub fn streaming(&mut self) -> &mut Self[src]

Add the correspondingly named prelude trait to this model element

Trait Implementations

impl Debug for UnionBuilder[src]

impl<'_> From<&'_ mut UnionBuilder> for Shape[src]

impl From<UnionBuilder> for Shape[src]

impl ShapeBuilder<Shape> for UnionBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.