pub struct FriendshipActionRequest {
pub agent_id: AgentId,
pub signature: String,
pub timestamp: i64,
}Expand description
Full HTTP request body for the friendship and block endpoints:
POST /api/social/friends/{name}/request/accept/decline/removePOST /api/social/blocks/{name}andPOST /api/social/blocks/{name}/removePOST /api/social/friends/list(a signed read; no path parameter)
The target agent’s name lives in the URL path (same pattern as
JoinLeaveRequest); the server synthesizes the matching
SignedAction variant from the path parameter when verifying, so
the body carries only the auth envelope.
Fields§
§agent_id: AgentId§signature: StringHex-encoded Ed25519 signature.
timestamp: i64Unix timestamp used in signature computation.
Trait Implementations§
Source§impl Debug for FriendshipActionRequest
impl Debug for FriendshipActionRequest
Source§impl<'de> Deserialize<'de> for FriendshipActionRequest
impl<'de> Deserialize<'de> for FriendshipActionRequest
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 FriendshipActionRequest
impl RefUnwindSafe for FriendshipActionRequest
impl Send for FriendshipActionRequest
impl Sync for FriendshipActionRequest
impl Unpin for FriendshipActionRequest
impl UnsafeUnpin for FriendshipActionRequest
impl UnwindSafe for FriendshipActionRequest
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