pub struct View {Show 20 fields
pub type: ViewType,
pub title: Option<TextObject>,
pub blocks: Vec<Block>,
pub close: Option<TextObject>,
pub submit: Option<TextObject>,
pub private_metadata: Option<String>,
pub callback_id: Option<String>,
pub clear_on_close: Option<bool>,
pub notify_on_close: Option<bool>,
pub external_id: Option<String>,
pub submit_disabled: Option<bool>,
pub id: Option<String>,
pub team_id: Option<String>,
pub state: Option<ViewState>,
pub hash: Option<String>,
pub previous_view_id: Option<String>,
pub root_view_id: Option<String>,
pub app_id: Option<String>,
pub app_installed_team_id: Option<String>,
pub bot_id: Option<String>,
}Expand description
A view for views.open / publish / update / push (the later fields are only returned by Slack). https://docs.slack.dev/reference/views
Fields§
§type: ViewType§title: Option<TextObject>§blocks: Vec<Block>§close: Option<TextObject>§submit: Option<TextObject>§private_metadata: Option<String>§callback_id: Option<String>§clear_on_close: Option<bool>§notify_on_close: Option<bool>§external_id: Option<String>§submit_disabled: Option<bool>§id: Option<String>§team_id: Option<String>§state: Option<ViewState>§hash: Option<String>§previous_view_id: Option<String>§root_view_id: Option<String>§app_id: Option<String>§app_installed_team_id: Option<String>§bot_id: Option<String>Implementations§
Source§impl View
impl View
pub fn modal(title: impl Into<TextObject>, blocks: Vec<Block>) -> Self
pub fn home(blocks: Vec<Block>) -> Self
pub fn workflow_step(blocks: Vec<Block>) -> Self
pub fn title(self, title: impl Into<TextObject>) -> Self
pub fn close(self, close: impl Into<TextObject>) -> Self
pub fn submit(self, submit: impl Into<TextObject>) -> Self
pub fn private_metadata(self, private_metadata: impl Into<String>) -> Self
pub fn callback_id(self, callback_id: impl Into<String>) -> Self
pub fn clear_on_close(self, clear_on_close: bool) -> Self
pub fn notify_on_close(self, notify_on_close: bool) -> Self
pub fn external_id(self, external_id: impl Into<String>) -> Self
pub fn submit_disabled(self, submit_disabled: bool) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
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 StructuralPartialEq for View
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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