[][src]Struct atelier_core::model::shapes::Resource

pub struct Resource { /* fields omitted */ }

Corresponds to the "resource" shape.

Implementations

impl Resource[src]

pub fn has_identifiers(&self) -> bool[src]

pub fn identifiers(&self) -> impl Iterator<Item = (&Identifier, &ShapeID)>[src]

pub fn add_identifier(&mut self, id: Identifier, shape: ShapeID)[src]

pub fn remove_identifier(&mut self, id: &Identifier)[src]

pub fn has_create(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn create(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_create(&mut self, create: ShapeID)[src]

Set the current value of this member.

pub fn unset_create(&mut self)[src]

Set the current value of this member to None.

pub fn has_put(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn put(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_put(&mut self, put: ShapeID)[src]

Set the current value of this member.

pub fn unset_put(&mut self)[src]

Set the current value of this member to None.

pub fn has_read(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn read(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_read(&mut self, read: ShapeID)[src]

Set the current value of this member.

pub fn unset_read(&mut self)[src]

Set the current value of this member to None.

pub fn has_update(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn update(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_update(&mut self, update: ShapeID)[src]

Set the current value of this member.

pub fn unset_update(&mut self)[src]

Set the current value of this member to None.

pub fn has_delete(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn delete(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_delete(&mut self, delete: ShapeID)[src]

Set the current value of this member.

pub fn unset_delete(&mut self)[src]

Set the current value of this member to None.

pub fn has_list(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn list(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_list(&mut self, list: ShapeID)[src]

Set the current value of this member.

pub fn unset_list(&mut self)[src]

Set the current value of this member to None.

pub fn has_operations(&self) -> bool[src]

Returns true if this member's collection has any elements, else false.

pub fn operations(&self) -> impl Iterator<Item = &ShapeID>[src]

Return an iterator over all elements in this member's collection.

pub fn add_operation(&mut self, operation: ShapeID)[src]

Add an element to this member's collection.

pub fn append_operations(&mut self, operations: &[ShapeID])[src]

Add all these elements to this member's collection.

pub fn remove_operation(&mut self, operation: &ShapeID)[src]

Remove an element, with the given identifier, to this member's collection.

pub fn has_collection_operations(&self) -> bool[src]

Returns true if this member's collection has any elements, else false.

pub fn collection_operations(&self) -> impl Iterator<Item = &ShapeID>[src]

Return an iterator over all elements in this member's collection.

pub fn add_collection_operation(&mut self, collection_operation: ShapeID)[src]

Add an element to this member's collection.

pub fn append_collection_operations(
    &mut self,
    collection_operations: &[ShapeID]
)
[src]

Add all these elements to this member's collection.

pub fn remove_collection_operation(&mut self, collection_operation: &ShapeID)[src]

Remove an element, with the given identifier, to this member's collection.

pub fn has_resources(&self) -> bool[src]

Returns true if this member's collection has any elements, else false.

pub fn resources(&self) -> impl Iterator<Item = &ShapeID>[src]

Return an iterator over all elements in this member's collection.

pub fn add_resource(&mut self, resource: ShapeID)[src]

Add an element to this member's collection.

pub fn append_resources(&mut self, resources: &[ShapeID])[src]

Add all these elements to this member's collection.

pub fn remove_resource(&mut self, resource: &ShapeID)[src]

Remove an element, with the given identifier, to this member's collection.

Trait Implementations

impl Clone for Resource[src]

impl Debug for Resource[src]

impl Default for Resource[src]

impl HasMembers for Resource[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.