pub enum Channel {
TelegramHtml,
SlackMarkdown,
Plain,
}Expand description
내보낼 채널. 받는 문법이 채널마다 다르고, 출력이 좁은 쪽이 파싱 범위를 정한다.
Variants§
TelegramHtml
Telegram parse_mode=HTML. 허용 태그 9개:
b i u s code pre a blockquote tg-spoiler. 표·헤딩 없음. 4096자.
SlackMarkdown
Slack markdown_text. 표준 마크다운을 슬랙이 직접 변환한다. 12,000자.
변환이 거의 필요 없고, 남는 일은 정규화와 분할뿐이다.
Plain
모든 마크업 제거. 폴백 경로.
Implementations§
Trait Implementations§
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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