pub struct SlackEnvelopeMessage {
pub ok: bool,
pub error: Option<String>,
pub errors: Option<Vec<Value>>,
pub warnings: Option<Vec<String>>,
}Fields§
§ok: bool§error: Option<String>§errors: Option<Vec<Value>>Validation methods (apps.manifest.validate, blocks.validate) return
ok: false with structured objects here, so the entries are kept raw;
see SlackEnvelopeMessage::errors_as_strings for a flat view.
warnings: Option<Vec<String>>Implementations§
Source§impl SlackEnvelopeMessage
impl SlackEnvelopeMessage
Sourcepub fn errors_as_strings(&self) -> Option<Vec<String>>
pub fn errors_as_strings(&self) -> Option<Vec<String>>
errors flattened for logging: strings verbatim, anything else as its
JSON text.
Trait Implementations§
Source§impl Clone for SlackEnvelopeMessage
impl Clone for SlackEnvelopeMessage
Source§impl Debug for SlackEnvelopeMessage
impl Debug for SlackEnvelopeMessage
Source§impl<'de> Deserialize<'de> for SlackEnvelopeMessage
impl<'de> Deserialize<'de> for SlackEnvelopeMessage
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
impl Eq for SlackEnvelopeMessage
Source§impl PartialEq for SlackEnvelopeMessage
impl PartialEq for SlackEnvelopeMessage
Source§impl Serialize for SlackEnvelopeMessage
impl Serialize for SlackEnvelopeMessage
impl StructuralPartialEq for SlackEnvelopeMessage
Auto Trait Implementations§
impl Freeze for SlackEnvelopeMessage
impl RefUnwindSafe for SlackEnvelopeMessage
impl Send for SlackEnvelopeMessage
impl Sync for SlackEnvelopeMessage
impl Unpin for SlackEnvelopeMessage
impl UnsafeUnpin for SlackEnvelopeMessage
impl UnwindSafe for SlackEnvelopeMessage
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