Skip to main content

Object

Enum Object 

Source
pub enum Object {
    Query(Box<Query>),
    Nulls(NullsPosition),
    Row {
        class: String,
        fields: Array,
    },
}
Expand description

An object among a query’s values.

Variants§

§

Query(Box<Query>)

A nested query (the children of and, or, having, joins).

PHP: Utopia\Query\Query.

§

Nulls(NullsPosition)

The NULLS FIRST / NULLS LAST of an order query.

PHP: Utopia\Query\NullsPosition.

§

Row

A row read through array access, such as a document used as a cursor: its class and its fields.

PHP: an object implementing ArrayAccess (ArrayObject, Utopia\Database\Document).

Fields

§class: String

The PHP class.

§fields: Array

The fields.

Trait Implementations§

Source§

impl Clone for Object

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Object

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Extension for Object

Source§

fn class(&self) -> &str

The PHP class.

Source§

fn to_array(&self) -> Array

What json_encode writes for the object: a query has no public properties, a row its fields.

Source§

impl From<NullsPosition> for Object

Source§

fn from(nulls: NullsPosition) -> Self

The enum case as an object value.

Source§

impl PartialEq for Object

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Object

Auto Trait Implementations§

§

impl Forget for Object

§

impl Freeze for Object
where *const Query is !null: Freeze, PhantomData<Query>: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const ArcInner<Repr<Object>> is !null: Freeze, PhantomData<ArcInner<Repr<Object>>>: Freeze,

§

impl Move for Object

§

impl RefUnwindSafe for Object

§

impl Send for Object
where BoxRaw<Query>: Send, RawVecInner: Send, Arc<Repr<Object>>: Send,

§

impl Sync for Object
where BoxRaw<Query>: Sync, RawVecInner: Sync, Arc<Repr<Object>>: Sync,

§

impl Unpin for Object
where Box<Query>: Unpin, *const u8 is !null: Unpin, Arc<Repr<Object>>: Unpin,

§

impl UnsafeUnpin for Object

§

impl UnwindSafe for Object
where BoxRaw<Query>: UnwindSafe, RawVecInner: UnwindSafe, Arc<Repr<Object>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.