pub struct ListRecordElement {
pub file_id: String,
pub record_id: Option<String>,
pub view_id: Option<String>,
pub style: Option<RichTextStyle>,
pub text: Option<String>,
pub url: Option<String>,
/* private fields */
}Expand description
A link to a Slack list record. https://docs.slack.dev/reference/block-kit/block-elements/list-record-element
Fields§
§file_id: String§record_id: Option<String>§view_id: Option<String>§style: Option<RichTextStyle>§text: Option<String>§url: Option<String>Implementations§
Source§impl ListRecordElement
impl ListRecordElement
pub fn new(file_id: impl Into<String>) -> Self
pub fn record_id(self, record_id: impl Into<String>) -> Self
pub fn view_id(self, view_id: impl Into<String>) -> Self
pub fn style(self, style: RichTextStyle) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ListRecordElement
impl Clone for ListRecordElement
Source§impl Debug for ListRecordElement
impl Debug for ListRecordElement
Source§impl<'de> Deserialize<'de> for ListRecordElement
impl<'de> Deserialize<'de> for ListRecordElement
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
Source§impl From<ListRecordElement> for RichTextElement
impl From<ListRecordElement> for RichTextElement
Source§fn from(value: ListRecordElement) -> Self
fn from(value: ListRecordElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ListRecordElement
impl PartialEq for ListRecordElement
Source§impl Serialize for ListRecordElement
impl Serialize for ListRecordElement
impl StructuralPartialEq for ListRecordElement
Auto Trait Implementations§
impl Freeze for ListRecordElement
impl RefUnwindSafe for ListRecordElement
impl Send for ListRecordElement
impl Sync for ListRecordElement
impl Unpin for ListRecordElement
impl UnsafeUnpin for ListRecordElement
impl UnwindSafe for ListRecordElement
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