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

pub struct ResourceBuilder { /* fields omitted */ }

Builder for ShapeBody::Resource shapes.

Implementations

impl ResourceBuilder[src]

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

Construct a new shape builder, with id.

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

Add an identifier to this resource; this represents the local member name and shape identifier for the member's type.

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

Add the named member value to the shape referenced by id.

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

Add the named member value to the shape referenced by id.

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

Add the named member value to the shape referenced by id.

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

Add the named member value to the shape referenced by id.

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

Add the named member value to the shape referenced by id.

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

Add the named member value to the shape referenced by id.

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

Add the named member value to the shape referenced by id.

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

Append the shapes referenced by ids to the named member value.

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

Add the named member value to the shape referenced by id.

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

Append the shapes referenced by ids to the named member value.

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

Add the named member value to the shape referenced by id.

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

Append the shapes referenced by ids to the named member value.

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

Add the correspondingly named prelude trait to this model element

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

Add the correspondingly named prelude trait, and value(s), to this model element

Trait Implementations

impl Debug for ResourceBuilder[src]

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

impl From<ResourceBuilder> for Shape[src]

impl ShapeBuilder<Shape> for ResourceBuilder[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.