pub struct VoiceAccounts;Expand description
Marker for the /api/voice/accounts/{sync,list} endpoint pair.
Accounts are the first mutable, bidirectional sync resource, but
the wire shape is the same idempotent upsert the immutable resources
use — the SyncResponse::skipped field
was reserved for exactly this case — so no new HTTP plumbing is
needed: client.sync::<VoiceAccounts>(&items) uploads (including
tombstones), client.list::<VoiceAccounts>(&query) pulls.
Trait Implementations§
Source§impl SyncEndpoint for VoiceAccounts
impl SyncEndpoint for VoiceAccounts
Source§type Record = VoiceAccountRecord
type Record = VoiceAccountRecord
One row’s worth of data. Must round-trip through JSON; the wire
shape uses camelCase per the platform’s Hono/Zod convention
(apply
#[serde(rename_all = "camelCase")] on your struct). Read moreSource§type Query = VoiceAccountsQuery
type Query = VoiceAccountsQuery
Query params for
GET /api/voice/{RESOURCE}. Typically a cursor
(before as RFC 3339) plus a limit and any resource-specific
filters (e.g. account_id). Serialized as URL query.Source§const CURRENT_SCHEMA_VERSION: u32 = 1
const CURRENT_SCHEMA_VERSION: u32 = 1
Current wire-schema version for this resource’s
Record type. Read moreAuto Trait Implementations§
impl Freeze for VoiceAccounts
impl RefUnwindSafe for VoiceAccounts
impl Send for VoiceAccounts
impl Sync for VoiceAccounts
impl Unpin for VoiceAccounts
impl UnsafeUnpin for VoiceAccounts
impl UnwindSafe for VoiceAccounts
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