[][src]Struct faunadb::expr::Ref

pub struct Ref<'a> {
    pub id: Cow<'a, str>,
    // some fields omitted
}

Denotes a resource ref.

Fields

id: Cow<'a, str>

Methods

impl<'a> Ref<'a>[src]

pub fn instance<S>(id: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

A ref to a singleton instance.

pub fn class<S>(id: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

A ref to a class.

pub fn index<S>(id: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

A ref to an index.

pub fn function<S>(id: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

A ref to a function.

pub fn database<S>(id: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

A ref to a database.

pub fn set_class<S>(&mut self, id: S) -> &mut Self where
    S: Into<Cow<'a, str>>, 
[src]

Set the class for the singleton ref.

pub fn set_index<S>(&mut self, id: S) -> &mut Self where
    S: Into<Cow<'a, str>>, 
[src]

Set the index for the singleton ref.

pub fn path(&self) -> String[src]

Gets the fully qualified path.

Trait Implementations

impl<'a> Clone for Ref<'a>[src]

impl<'a> PartialEq<Ref<'a>> for Ref<'a>[src]

impl From<Ref<'static>> for Value[src]

impl<'a> From<Ref<'a>> for Expr<'a>[src]

impl<'a> Debug for Ref<'a>[src]

impl<'a> Display for Ref<'a>[src]

impl<'a> Serialize for Ref<'a>[src]

impl<'de, 'a> Deserialize<'de> for Ref<'a>[src]

Auto Trait Implementations

impl<'a> Send for Ref<'a>

impl<'a> Unpin for Ref<'a>

impl<'a> Sync for Ref<'a>

impl<'a> UnwindSafe for Ref<'a>

impl<'a> RefUnwindSafe for Ref<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T