pub struct Review {
pub comment: String,
pub created_at: DateTime<Utc>,
pub id: Uuid,
pub rating: NonZeroU64,
pub reviewee_id: Uuid,
pub reviewer_id: Uuid,
pub task_id: Uuid,
}Expand description
Review
JSON schema
{
"type": "object",
"required": [
"comment",
"created_at",
"id",
"rating",
"reviewee_id",
"reviewer_id",
"task_id"
],
"properties": {
"comment": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "string",
"format": "uuid"
},
"rating": {
"type": "integer",
"maximum": 5.0,
"minimum": 1.0
},
"reviewee_id": {
"description": "Account ID of the reviewed party",
"type": "string",
"format": "uuid"
},
"reviewer_id": {
"description": "Account ID of the reviewer",
"type": "string",
"format": "uuid"
},
"task_id": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}Fields§
§comment: String§created_at: DateTime<Utc>§id: Uuid§rating: NonZeroU64§reviewee_id: UuidAccount ID of the reviewed party
reviewer_id: UuidAccount ID of the reviewer
task_id: UuidTrait Implementations§
Source§impl<'de> Deserialize<'de> for Review
impl<'de> Deserialize<'de> for Review
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 Review
impl RefUnwindSafe for Review
impl Send for Review
impl Sync for Review
impl Unpin for Review
impl UnsafeUnpin for Review
impl UnwindSafe for Review
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