pub struct SignedReadRequest {
pub agent_id: AgentId,
pub signature: String,
pub timestamp: i64,
}Expand description
A request body carrying nothing but the signature envelope.
The shape every signed read needs: prove who is asking, ask for
nothing else. Used by POST /api/moderation/my-record, where the
record served is always the signing agent’s and a parameter naming
whose record to return would be a parameter worth attacking.
FriendshipActionRequest is this same shape, and MessageActionRequest
is this plus an optional message_key. They predate this type and
should collapse into it; doing so is a wire-compatible rename, but
it touches live routes and belongs in its own change.
Fields§
§agent_id: AgentId§signature: StringHex-encoded Ed25519 signature.
timestamp: i64Unix timestamp used in signature computation.
Trait Implementations§
Source§impl Debug for SignedReadRequest
impl Debug for SignedReadRequest
Source§impl<'de> Deserialize<'de> for SignedReadRequest
impl<'de> Deserialize<'de> for SignedReadRequest
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 SignedReadRequest
impl RefUnwindSafe for SignedReadRequest
impl Send for SignedReadRequest
impl Sync for SignedReadRequest
impl Unpin for SignedReadRequest
impl UnsafeUnpin for SignedReadRequest
impl UnwindSafe for SignedReadRequest
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