pub struct FeedbackSummary {
pub categories: HashMap<String, i64>,
pub count: u64,
pub rating_average: Option<f64>,
pub rating_count: u64,
pub ratings: FeedbackSummaryRatings,
pub recent: Vec<FeedbackRecord>,
pub target: FeedbackTarget,
pub verification: FeedbackSummaryVerification,
}Expand description
FeedbackSummary
JSON schema
{
"type": "object",
"required": [
"categories",
"count",
"ratingAverage",
"ratingCount",
"ratings",
"recent",
"target",
"verification"
],
"properties": {
"categories": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
},
"count": {
"type": "integer",
"minimum": 0.0
},
"ratingAverage": {
"type": [
"number",
"null"
]
},
"ratingCount": {
"type": "integer",
"minimum": 0.0
},
"ratings": {
"type": "object",
"required": [
"1",
"2",
"3",
"4",
"5"
],
"properties": {
"1": {
"type": "integer"
},
"2": {
"type": "integer"
},
"3": {
"type": "integer"
},
"4": {
"type": "integer"
},
"5": {
"type": "integer"
}
}
},
"recent": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FeedbackRecord"
}
},
"target": {
"$ref": "#/components/schemas/FeedbackTarget"
},
"verification": {
"type": "object",
"required": [
"anonymous",
"compose_key",
"wallet_header"
],
"properties": {
"anonymous": {
"type": "integer"
},
"compose_key": {
"type": "integer"
},
"wallet_header": {
"type": "integer"
}
}
}
}
}Fields§
§categories: HashMap<String, i64>§count: u64§rating_average: Option<f64>§rating_count: u64§ratings: FeedbackSummaryRatings§recent: Vec<FeedbackRecord>§target: FeedbackTarget§verification: FeedbackSummaryVerificationImplementations§
Source§impl FeedbackSummary
impl FeedbackSummary
pub fn builder() -> FeedbackSummary
Trait Implementations§
Source§impl Clone for FeedbackSummary
impl Clone for FeedbackSummary
Source§fn clone(&self) -> FeedbackSummary
fn clone(&self) -> FeedbackSummary
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 FeedbackSummary
impl Debug for FeedbackSummary
Source§impl<'de> Deserialize<'de> for FeedbackSummary
impl<'de> Deserialize<'de> for FeedbackSummary
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<FeedbackSummary> for FeedbackSummary
impl From<FeedbackSummary> for FeedbackSummary
Source§fn from(value: FeedbackSummary) -> Self
fn from(value: FeedbackSummary) -> Self
Converts to this type from the input type.
Source§impl Serialize for FeedbackSummary
impl Serialize for FeedbackSummary
Source§impl TryFrom<FeedbackSummary> for FeedbackSummary
impl TryFrom<FeedbackSummary> for FeedbackSummary
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FeedbackSummary) -> Result<Self, ConversionError>
fn try_from(value: FeedbackSummary) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FeedbackSummary
impl RefUnwindSafe for FeedbackSummary
impl Send for FeedbackSummary
impl Sync for FeedbackSummary
impl Unpin for FeedbackSummary
impl UnsafeUnpin for FeedbackSummary
impl UnwindSafe for FeedbackSummary
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