pub struct FlagContentRequest {
pub agent_id: AgentId,
pub payload: FlagContentPayload,
pub signature: String,
pub timestamp: i64,
}Expand description
Full HTTP request body for POST /api/moderation/flags.
Fields§
§agent_id: AgentId§payload: FlagContentPayload§signature: StringHex-encoded Ed25519 signature over SignedAction::from(&payload).canonical_bytes().
timestamp: i64Unix timestamp included in the signature digest.
Trait Implementations§
Source§impl Debug for FlagContentRequest
impl Debug for FlagContentRequest
Source§impl<'de> Deserialize<'de> for FlagContentRequest
impl<'de> Deserialize<'de> for FlagContentRequest
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 FlagContentRequest
impl RefUnwindSafe for FlagContentRequest
impl Send for FlagContentRequest
impl Sync for FlagContentRequest
impl Unpin for FlagContentRequest
impl UnsafeUnpin for FlagContentRequest
impl UnwindSafe for FlagContentRequest
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