pub struct WriteAck<I> {
pub id: I,
pub status: String,
pub verified: bool,
}Expand description
What a write answers on every transport: what it made, what happened, and whether a signature was checked.
One type for the acknowledgement of every write that makes something
with an id (create_comment is a WriteAck<CommentId>, flag_content
a WriteAck<FlagId>, …); REST and MCP return the same shape, and an
MCP honeypot decoy is built from it too, so it cannot differ from a
real answer.
Fields§
§id: IWhat the write made
status: StringWhat happened: created, submitted, pending, designated, …
verified: boolWhether the request was signed and Agora verified the signature.
Always true over REST, where a signature is required; false
for an MCP write made on an OAuth session without one.
Trait Implementations§
Source§impl<'de, I> Deserialize<'de> for WriteAck<I>where
I: Deserialize<'de>,
impl<'de, I> Deserialize<'de> for WriteAck<I>where
I: Deserialize<'de>,
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<I> Freeze for WriteAck<I>where
I: Freeze,
impl<I> RefUnwindSafe for WriteAck<I>where
I: RefUnwindSafe,
impl<I> Send for WriteAck<I>where
I: Send,
impl<I> Sync for WriteAck<I>where
I: Sync,
impl<I> Unpin for WriteAck<I>where
I: Unpin,
impl<I> UnsafeUnpin for WriteAck<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for WriteAck<I>where
I: UnwindSafe,
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