Struct ciboulette::CibouletteResourceType[][src]

pub struct CibouletteResourceType { /* fields omitted */ }

Implementations

impl CibouletteResourceType[src]

impl CibouletteResourceType[src]

pub fn relationships_mut(&mut self) -> &mut BTreeMap<ArcStr, EdgeIndex<u16>>[src]

pub fn relationships_type_to_alias_mut(
    &mut self
) -> &mut BTreeMap<ArcStr, ArcStr>
[src]

pub fn schema_mut(&mut self) -> &mut MessyJsonObject[src]

pub fn id_type_mut(&mut self) -> &mut CibouletteIdType[src]

pub fn name_mut(&mut self) -> &mut ArcStr[src]

impl CibouletteResourceType[src]

pub fn get_alias(&self, name: &str) -> Result<&ArcStr, CibouletteError>[src]

Get a the alias of a type related to this type

pub fn get_relationship_with_alias(
    &self,
    store: &CibouletteStore,
    alias: &str
) -> Result<(ArcStr, Arc<CibouletteResourceType>), CibouletteError>
[src]

Fetch a relationships alongside its alias

pub fn get_relationship(
    &self,
    store: &CibouletteStore,
    alias: &str
) -> Result<Arc<CibouletteResourceType>, CibouletteError>
[src]

Fetch a relationships related type

pub fn get_relationship_details(
    &self,
    store: &CibouletteStore,
    alias: &str
) -> Result<CibouletteResourceRelationshipDetails, CibouletteError>
[src]

Get a relationships metadata

pub fn has_fields<'store, I>(
    &self,
    fields: I
) -> Result<Option<String>, CibouletteError> where
    I: Iterator<Item = &'store str>, 
[src]

Check if a resource type has every the top level fields in the iterator

Trait Implementations

impl Clone for CibouletteResourceType[src]

impl Debug for CibouletteResourceType[src]

impl Eq for CibouletteResourceType[src]

impl Hash for CibouletteResourceType[src]

impl Ord for CibouletteResourceType[src]

impl PartialEq<CibouletteResourceType> for CibouletteResourceType[src]

impl PartialOrd<CibouletteResourceType> for CibouletteResourceType[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.