/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RiskLabelEvent {
/// At is the event's own instant, RFC 3339. It is part of the event's IDENTITY and not a filter: it is matched exactly, to the second, against the `at` the assertions were filed under, so an instant a second off names a different event and resolves to nothing. It is also what this event's as-of is measured from — At plus the horizon.
#[serde(rename = "at", skip_serializing_if = "Option::is_none")]
pub at: Option<String>,
/// Kind is the judged entity's type, from the closed set: account, agent, merchant, payout, person, session or transaction. One outside it is refused rather than answered `unlabelled`, because it could only ever match nothing and the caller would read a real absence into a typo.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// Subject is the entity id in the tenant's own namespace, at most 512 bytes. It is matched EXACTLY against what was recorded — this is a lookup, not a search, and no prefix, pattern or normalisation is applied.
#[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
pub subject: Option<String>,
}
impl RiskLabelEvent {
pub fn new() -> RiskLabelEvent {
RiskLabelEvent {
at: None,
kind: None,
subject: None,
}
}
}