Enum Value Copy item path Source pub enum Value {
Int(i64 ),
Bool(bool ),
String(String ),
Binary(Vec <u8 >),
Table(Vec <Row <'static>>),
Timestamp(DateTime <Utc >),
Float(f32 ),
Double(f64 ),
Link(Link ),
LinkList(Vec <Link >),
BackLink(Backlink ),
None,
}
Expand description A single value from a Realm database. Represents one row in one column.
A signed integer value. Integers may be nullable in Realm, in which case
they are represented as None
.
A boolean value. Booleans may be nullable in Realm, in which case
they are represented as None
.
A string value. Strings may be nullable in Realm, in which case
they are represented as None
.
A binary blob value. Binary blobs may be nullable in Realm, in which case
they are represented as None
.
A subtable value. Tables in Realm may have a column that contains an
entire table. In that case, upon loading the row, the subtable and all
its rows are loaded.
A timestamp value, represented using the chrono
crate. Timestamps may
be nullable in Realm, in which case they are represented as None
.
A double-precision floating-point value.
A link to a row in a given table. If the link is null, it is represented
as None
.
A list of links to rows in a given table. If a row has no links, this
will be an empty list.
A backlink. In cases where table A maintains a link (see Link
or
LinkList
), table B maintains a backlink to table
A. You can use this to navigate back to the parent row in a has-one
relationship.
Backlinks may be nullable in Realm, in which case they are represented
as None
.
Backlinks are special, as their containing columns are unnamed, and thus
cannot be retrieved using Row::get
. Instead, you
can use Row::backlinks
to retrieve the
backlinks. See the documentation for
realm_model!
for how to incorporate backlinks
into your model classes.
Returns true if the value is None
.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.