pub struct FeishuCardConfig {
pub style: Option<FeishuCardStyle>,
/* private fields */
}Expand description
卡片全局行为设置
Fields§
§style: Option<FeishuCardStyle>添加自定义字号和颜色。可应用于组件的 JSON 数据中,设置字号和颜色属性。
Implementations§
Source§impl FeishuCardConfig
impl FeishuCardConfig
Sourcepub fn enable_forward(self, enable_forward: bool) -> Self
pub fn enable_forward(self, enable_forward: bool) -> Self
Sourcepub fn update_multi(self, update_multi: bool) -> Self
pub fn update_multi(self, update_multi: bool) -> Self
Sourcepub fn width_mode(self, width_mode: FeishuCardWidthMode) -> Self
pub fn width_mode(self, width_mode: FeishuCardWidthMode) -> Self
Sourcepub fn use_custom_translation(self, use_custom_translation: bool) -> Self
pub fn use_custom_translation(self, use_custom_translation: bool) -> Self
Sourcepub fn enable_forward_interaction(
self,
enable_forward_interaction: bool,
) -> Self
pub fn enable_forward_interaction( self, enable_forward_interaction: bool, ) -> Self
Sourcepub fn style(self, style: FeishuCardStyle) -> Self
pub fn style(self, style: FeishuCardStyle) -> Self
Trait Implementations§
Source§impl Debug for FeishuCardConfig
impl Debug for FeishuCardConfig
Source§impl Default for FeishuCardConfig
impl Default for FeishuCardConfig
Source§fn default() -> FeishuCardConfig
fn default() -> FeishuCardConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FeishuCardConfig
impl<'de> Deserialize<'de> for FeishuCardConfig
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
Auto Trait Implementations§
impl Freeze for FeishuCardConfig
impl RefUnwindSafe for FeishuCardConfig
impl Send for FeishuCardConfig
impl Sync for FeishuCardConfig
impl Unpin for FeishuCardConfig
impl UnwindSafe for FeishuCardConfig
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