pub struct PartialEntities(/* private fields */);
Available on crate feature
tpe
only.Expand description
Partial Entities
Implementations§
Source§impl PartialEntities
impl PartialEntities
Sourcepub fn from_json_value(
value: Value,
schema: &Schema,
) -> Result<Self, EntitiesError>
pub fn from_json_value( value: Value, schema: &Schema, ) -> Result<Self, EntitiesError>
Construct PartialEntities
from a JSON value
The parent
, attrs
, tags
field must be either fully known or
unknown. And parent entities cannot have unknown parents.
Sourcepub fn from_concrete(
entities: Entities,
) -> Result<Self, PartialValueToValueError>
pub fn from_concrete( entities: Entities, ) -> Result<Self, PartialValueToValueError>
Construct [PartialEntities]
given a fully concrete [Entities]
Trait Implementations§
Source§impl Clone for PartialEntities
impl Clone for PartialEntities
Source§fn clone(&self) -> PartialEntities
fn clone(&self) -> PartialEntities
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PartialEntities
impl Debug for PartialEntities
Auto Trait Implementations§
impl Freeze for PartialEntities
impl RefUnwindSafe for PartialEntities
impl Send for PartialEntities
impl Sync for PartialEntities
impl Unpin for PartialEntities
impl UnwindSafe for PartialEntities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more