#[non_exhaustive]pub struct BlocksValidateRequest {
pub blocks: Option<Vec<Block>>,
pub message: Option<String>,
pub view: Option<View>,
}Expand description
Arguments for the Slack Web API method blocks.validate: Validates blocks, messages, and views Block Kit JSON payloads.
Send it with SlackClient::blocks_validate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.blocks: Option<Vec<Block>>A JSON-encoded array of structured blocks. Provide exactly one of blocks, view, or message.
message: Option<String>A JSON-encoded message payload to validate. Provide exactly one of blocks, view, or message.
view: Option<View>A JSON-encoded view payload to validate. Provide exactly one of blocks, view, or message.
Implementations§
Trait Implementations§
Source§impl Clone for BlocksValidateRequest
impl Clone for BlocksValidateRequest
Source§impl Debug for BlocksValidateRequest
impl Debug for BlocksValidateRequest
Source§impl Default for BlocksValidateRequest
impl Default for BlocksValidateRequest
Source§impl PartialEq for BlocksValidateRequest
impl PartialEq for BlocksValidateRequest
Source§impl Serialize for BlocksValidateRequest
impl Serialize for BlocksValidateRequest
impl StructuralPartialEq for BlocksValidateRequest
Auto Trait Implementations§
impl Freeze for BlocksValidateRequest
impl RefUnwindSafe for BlocksValidateRequest
impl Send for BlocksValidateRequest
impl Sync for BlocksValidateRequest
impl Unpin for BlocksValidateRequest
impl UnsafeUnpin for BlocksValidateRequest
impl UnwindSafe for BlocksValidateRequest
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