pub struct CacheKey {
pub endpoint: &'static str,
pub caller_key_id: Option<String>,
pub acc_id: u64,
pub op: String,
pub raw_key: String,
}Expand description
v1.4.106 codex 0920 F1 (P1): namespaced cache key builder.
所有 trade-write handler 都用本 helper 构造 cache key, 不直接拼字符串. 这样保证 namespace 5 轴的 ordering / separator 全 daemon 统一.
Fields§
§endpoint: &'static strendpoint: place_order / modify_order / cancel_order / reconfirm_order
caller_key_id: Option<String>caller key id (None → <no_key> 占位符 for TCP/legacy)
acc_id: u64acc_id (c2s.header.acc_id)
op: Stringop label —— PLACE / MODIFY=N / CANCEL / RECONFIRM=N 等
raw_key: String用户传的 raw key (Idempotency-Key header / TCP packet id)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnsafeUnpin for CacheKey
impl UnwindSafe for CacheKey
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