[−][src]Struct atelier_core::model::builder::ResourceBuilder
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]
fn from(builder: &mut ResourceBuilder) -> Self
[src]
impl From<ResourceBuilder> for Shape
[src]
fn from(builder: ResourceBuilder) -> Self
[src]
impl ShapeBuilder<Shape> for ResourceBuilder
[src]
fn inner(&self) -> &Shape
[src]
fn inner_mut(&mut self) -> &mut Shape
[src]
fn documentation(&mut self, documentation: &str) -> &mut Self
[src]
fn add_trait(&mut self, a_trait: Trait) -> &mut Self
[src]
fn external_documentation(&mut self, map: &[(&str, &str)]) -> &mut Self
[src]
fn deprecated(
&mut self,
message: Option<&str>,
since: Option<&str>
) -> &mut Self
[src]
&mut self,
message: Option<&str>,
since: Option<&str>
) -> &mut Self
fn since(&mut self, date: &str) -> &mut Self
[src]
fn tagged(&mut self, tags: &[&str]) -> &mut Self
[src]
fn unstable(&mut self) -> &mut Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResourceBuilder
impl Send for ResourceBuilder
impl Sync for ResourceBuilder
impl Unpin for ResourceBuilder
impl UnwindSafe for ResourceBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,