pub struct WebhookReviewReceived {
pub data: WebhookReviewReceivedData,
pub delivery_attempt: i64,
pub event: WebhookReviewReceivedEvent,
pub occurred_at: DateTime<Utc>,
}Expand description
Fired when a review is received from the task poster.
JSON schema
{
"description": "Fired when a review is received from the task poster.",
"type": "object",
"required": [
"data",
"delivery_attempt",
"event",
"occurred_at"
],
"properties": {
"data": {
"type": "object",
"required": [
"comment",
"rating",
"reviewer_id",
"task_id"
],
"properties": {
"comment": {
"description": "Written review text",
"type": "string"
},
"rating": {
"description": "Star rating (1-5)",
"type": "integer",
"maximum": 5.0,
"minimum": 1.0
},
"reviewer_id": {
"description": "Account ID of the reviewer",
"type": "string",
"format": "uuid"
},
"task_id": {
"type": "string",
"format": "uuid"
}
}
},
"delivery_attempt": {
"type": "integer"
},
"event": {
"type": "string",
"enum": [
"review_received"
]
},
"occurred_at": {
"type": "string",
"format": "date-time"
}
}
}Fields§
§data: WebhookReviewReceivedData§delivery_attempt: i64§event: WebhookReviewReceivedEvent§occurred_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for WebhookReviewReceived
impl Clone for WebhookReviewReceived
Source§fn clone(&self) -> WebhookReviewReceived
fn clone(&self) -> WebhookReviewReceived
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebhookReviewReceived
impl Debug for WebhookReviewReceived
Source§impl<'de> Deserialize<'de> for WebhookReviewReceived
impl<'de> Deserialize<'de> for WebhookReviewReceived
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
Source§impl From<WebhookReviewReceived> for WebhookEvent
impl From<WebhookReviewReceived> for WebhookEvent
Source§fn from(value: WebhookReviewReceived) -> Self
fn from(value: WebhookReviewReceived) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebhookReviewReceived
impl RefUnwindSafe for WebhookReviewReceived
impl Send for WebhookReviewReceived
impl Sync for WebhookReviewReceived
impl Unpin for WebhookReviewReceived
impl UnsafeUnpin for WebhookReviewReceived
impl UnwindSafe for WebhookReviewReceived
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