pub struct DbOpMessage {
pub call_id: String,
pub op_id: Option<String>,
pub op: DbOp,
pub entity: String,
pub id: Option<String>,
pub data: Option<Value>,
pub field: Option<String>,
pub value: Option<String>,
pub relation: Option<String>,
pub target_id: Option<String>,
pub after: Option<String>,
pub limit: Option<u32>,
}Expand description
A database operation request from TypeScript.
Fields§
§call_id: String§op_id: Option<String>Optional per-RPC id minted by the TS side. When present, the Rust
reply echoes it back on DbResultMessage.op_id so the TS runtime
can demux concurrent DB ops from a single handler (Promise.all).
Legacy TS runtimes that don’t send op_id keep the old behavior:
only one in-flight RPC per call_id at a time.
op: DbOp§entity: String§id: Option<String>§data: Option<Value>§field: Option<String>§value: Option<String>§relation: Option<String>§target_id: Option<String>§after: Option<String>Cursor pagination — paginate op only. Opaque id-after cursor.
limit: Option<u32>Cursor pagination — paginate op only. Requested page size.
Trait Implementations§
Source§impl Clone for DbOpMessage
impl Clone for DbOpMessage
Source§fn clone(&self) -> DbOpMessage
fn clone(&self) -> DbOpMessage
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 DbOpMessage
impl Debug for DbOpMessage
Source§impl<'de> Deserialize<'de> for DbOpMessage
impl<'de> Deserialize<'de> for DbOpMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DbOpMessage
impl RefUnwindSafe for DbOpMessage
impl Send for DbOpMessage
impl Sync for DbOpMessage
impl Unpin for DbOpMessage
impl UnsafeUnpin for DbOpMessage
impl UnwindSafe for DbOpMessage
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