pub struct WebhookPayloadAdStatusChangedError {
pub code: String,
pub summary: Option<String>,
pub message: Option<String>,
}Expand description
WebhookPayloadAdStatusChangedError : Optional. Present on most WITH_ISSUES events, carrying the platform’s error diagnostics. May be absent on some WITH_ISSUES events (Meta does not always include diagnostics). Always absent for any other status.raw value. Always null-check before reading.
Fields§
§code: StringPlatform-native error code, forwarded verbatim. For Meta this is error_code as a string. Use as the stable discriminator — summary and message are localized.
summary: Option<String>Short human-readable summary (Meta error_summary). Localized to the ad-account owner’s Meta locale — display only, do not match on it.
message: Option<String>Full human-readable error message (Meta error_message). Localized — display only.
Implementations§
Source§impl WebhookPayloadAdStatusChangedError
impl WebhookPayloadAdStatusChangedError
Sourcepub fn new(code: String) -> WebhookPayloadAdStatusChangedError
pub fn new(code: String) -> WebhookPayloadAdStatusChangedError
Optional. Present on most WITH_ISSUES events, carrying the platform’s error diagnostics. May be absent on some WITH_ISSUES events (Meta does not always include diagnostics). Always absent for any other status.raw value. Always null-check before reading.
Trait Implementations§
Source§impl Clone for WebhookPayloadAdStatusChangedError
impl Clone for WebhookPayloadAdStatusChangedError
Source§fn clone(&self) -> WebhookPayloadAdStatusChangedError
fn clone(&self) -> WebhookPayloadAdStatusChangedError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for WebhookPayloadAdStatusChangedError
impl Default for WebhookPayloadAdStatusChangedError
Source§fn default() -> WebhookPayloadAdStatusChangedError
fn default() -> WebhookPayloadAdStatusChangedError
Source§impl<'de> Deserialize<'de> for WebhookPayloadAdStatusChangedError
impl<'de> Deserialize<'de> for WebhookPayloadAdStatusChangedError
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>,
Source§impl PartialEq for WebhookPayloadAdStatusChangedError
impl PartialEq for WebhookPayloadAdStatusChangedError
Source§fn eq(&self, other: &WebhookPayloadAdStatusChangedError) -> bool
fn eq(&self, other: &WebhookPayloadAdStatusChangedError) -> bool
self and other values to be equal, and is used by ==.