Enum wikidata::EntityError [−][src]
#[non_exhaustive] pub enum EntityError {}Show variants
FloatParse, ExpectedString, ExpectedObject, ExpectedArray, ExpectedNumberString, ExpectedUriString, ExpectedQidString, ExpectedStringDatatype, TimeEmpty, BadId, NoDateYear, NoDateMatched, DateAmbiguous, InvalidDatatype, UnknownDatatype, MissingHour, MissingMinute, MissingSecond, InvalidSnaktype, InvalidPrecision, NoRank, NumberOutOfBounds, NoId, NoEntities, MultipleEntities, NoEntityType, NoClaims, NoClaimId, UnknownRank, NoSnakOrder, NoHash, NoReferenceSnaks, SnaksOrderIncludesNonSnak, QualifiersOrderButNoObject, QualiferOrderNamesNonQualifier, ExpectedKeyvalTextString, ExpectedTextValue, ExpectedAliasArray, ExpectedClaimArray, ExpectedReferenceArray, ExpectedReferenceSubsnakArray, ExpectedHashString, ExpectedLangString, ExpectedAliasString, ExpectedPidString, MissingMainsnak,
Expand description
An error related to entity parsing/creation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
A float couldn’t be parsed
A string was expected but not found
An object was expected but not found
An array was expected but now found
Expected string repersenting number
Expected string repersenting URI
A valid Qid URI was expected but not found
Expected a string because the datatype is string
A time string was empty
An ID was invalid
A date didn’t have a year
No date matched the day/month/year
An ambiguous date was specified
The datatype was invalid
The datatype was invalid or unknown
The time was missing an hour
The time was missing an minute
The time was missing an second
The snaktype was invalid
The precision level was invalid
No rank was specified
A number was out of bounds
No ID was found
No entities are in the object
Multiple entities are in the object
The entity had no type
There are no claims
The claim ID is missing
That rank is unknown
A reference group is missing a snaks-order field
A hash is missing on a reference group
A reference group has no snaks
snaks-order includes a non-snak
A qualifier order exists but qulaifiers do not
qualifier-order names property that is not a qualifier
Expected a string in a key-val entity info object (name or description)
Expected a value in a language+value object
An array of aliases was not found
An array of claims was not found
An array of references was not found
An array of reference subsnaks was not found
A hash was expected but not found
A string representing a language was expected but not found
A string repersenting an alias was expected but not found
A string reperesnting a Pid was expected but not found
A mainsnak is missing
Trait Implementations
impl Clone for EntityError
[src]
impl Clone for EntityError
[src]fn clone(&self) -> EntityError
[src]
fn clone(&self) -> EntityError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for EntityError
[src]
impl Debug for EntityError
[src]impl PartialEq<EntityError> for EntityError
[src]
impl PartialEq<EntityError> for EntityError
[src]impl Eq for EntityError
[src]
impl StructuralEq for EntityError
[src]
impl StructuralPartialEq for EntityError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EntityError
impl Send for EntityError
impl Sync for EntityError
impl Unpin for EntityError
impl UnwindSafe for EntityError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more