twilight_model/channel/message/component/
action_row.rs

1use super::Component;
2
3/// Non-interactive [`Component`] container of other (non action row) components.
4#[derive(Clone, Debug, Eq, Hash, PartialEq)]
5pub struct ActionRow {
6    /// List of components in the action row.
7    pub components: Vec<Component>,
8}
9
10#[cfg(test)]
11mod tests {
12    use super::*;
13    use static_assertions::{assert_fields, assert_impl_all};
14    use std::{fmt::Debug, hash::Hash};
15
16    assert_fields!(ActionRow: components);
17    assert_impl_all!(ActionRow: Clone, Debug, Eq, Hash, PartialEq, Send, Sync);
18}