pub enum VectorValueError {
NotAList,
WrongDimensions {
actual: usize,
},
ElementNotANumber {
position: usize,
actual: &'static str,
},
ElementOutOfRange {
position: usize,
value: String,
},
}Expand description
Why an attribute value is not a valid vector for an index with a given dimension count. Carries the element-level detail the write-path validation errors interpolate; the checks run in the order the variants are listed, so a value can only report one failure.
Variants§
NotAList
The value is not a List at all.
WrongDimensions
The list’s element count differs from the index’s dimensions.
ElementNotANumber
An element is not a Number.
Fields
ElementOutOfRange
An element does not fit the finite f32 range (out-of-range values overflow to infinity on conversion; real DynamoDB rejects them at write time, captured eu-west-2 and us-east-1, 2026-08-12).
Trait Implementations§
Source§impl Clone for VectorValueError
impl Clone for VectorValueError
Source§impl Debug for VectorValueError
impl Debug for VectorValueError
Source§impl PartialEq for VectorValueError
impl PartialEq for VectorValueError
impl StructuralPartialEq for VectorValueError
Auto Trait Implementations§
impl Freeze for VectorValueError
impl RefUnwindSafe for VectorValueError
impl Send for VectorValueError
impl Sync for VectorValueError
impl Unpin for VectorValueError
impl UnsafeUnpin for VectorValueError
impl UnwindSafe for VectorValueError
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