[−][src]Struct faunadb::expr::Ref
Denotes a resource ref.
Methods
impl<'a> Ref<'a>
[src]
pub fn instance<S>(id: S) -> Self where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
A ref to a singleton instance.
pub fn class<S>(id: S) -> Self where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
A ref to a class.
pub fn index<S>(id: S) -> Self where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
A ref to an index.
pub fn function<S>(id: S) -> Self where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
A ref to a function.
pub fn database<S>(id: S) -> Self where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
A ref to a database.
pub fn set_class<S>(&mut self, id: S) -> &mut Self where
S: Into<Cow<'a, str>>,
[src]
S: Into<Cow<'a, str>>,
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]
S: Into<Cow<'a, str>>,
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]
fn clone(&self) -> Ref<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq<Ref<'a>> for Ref<'a>
[src]
impl<'a> From<Ref<'a>> for Expr<'a>
[src]
impl<'a> Display for Ref<'a>
[src]
impl<'a> Debug for Ref<'a>
[src]
impl<'a> Serialize for Ref<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, 'a> Deserialize<'de> for Ref<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,