pub struct GitHubAlert {
pub alert_type: GitHubAlertType,
pub blocks: Vec<Block>,
}Expand description
GitHub alert block
Fields§
§alert_type: GitHubAlertTypeType of the alert
blocks: Vec<Block>Content blocks inside the alert
Trait Implementations§
Source§impl Clone for GitHubAlert
impl Clone for GitHubAlert
Source§fn clone(&self) -> GitHubAlert
fn clone(&self) -> GitHubAlert
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitHubAlert
impl Debug for GitHubAlert
Source§impl<'de> Deserialize<'de> for GitHubAlert
impl<'de> Deserialize<'de> for GitHubAlert
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 PartialEq for GitHubAlert
impl PartialEq for GitHubAlert
Source§impl Serialize for GitHubAlert
impl Serialize for GitHubAlert
Source§impl<T: Default> WithData<T> for GitHubAlert
impl<T: Default> WithData<T> for GitHubAlert
Source§type WithDataType = GitHubAlertNode<T>
type WithDataType = GitHubAlertNode<T>
The type with user data attached
Source§fn with_data(self, data: T) -> Self::WithDataType
fn with_data(self, data: T) -> Self::WithDataType
Add user data to this AST node
Source§fn with_default_data(self) -> Self::WithDataTypewhere
T: Default,
fn with_default_data(self) -> Self::WithDataTypewhere
T: Default,
Add default user data to this AST node
impl StructuralPartialEq for GitHubAlert
Auto Trait Implementations§
impl Freeze for GitHubAlert
impl RefUnwindSafe for GitHubAlert
impl Send for GitHubAlert
impl Sync for GitHubAlert
impl Unpin for GitHubAlert
impl UnwindSafe for GitHubAlert
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