#[non_exhaustive]pub struct AddedItem {
pub id: Id,
pub index: u64,
pub extra: Map<String, Value>,
}Expand description
A single item added to a query result set (RFC 8620 §5.6).
The index is the position the new item occupies in the post-change
result set, accounting for items also added in this batch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IdThe id of the new item in the result set.
index: u64Zero-based position of the new item in the post-change result set.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddedItem
impl<'de> Deserialize<'de> for AddedItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddedItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddedItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AddedItem
impl Serialize for AddedItem
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AddedItem
Auto Trait Implementations§
impl Freeze for AddedItem
impl RefUnwindSafe for AddedItem
impl Send for AddedItem
impl Sync for AddedItem
impl Unpin for AddedItem
impl UnsafeUnpin for AddedItem
impl UnwindSafe for AddedItem
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