pub struct BBCodeTagConfig {
pub link_target: BBCodeLinkTarget,
pub img_in_url: bool,
pub newline_to_br: bool,
pub accepted_tags: Vec<String>,
}Expand description
Configuration for tag generation. Generally not necessary, as you can just generate your own tags with more ease and more configuration than this, but this is useful for quick and common modifications to normal tag generation.
Fields§
§link_target: BBCodeLinkTarget§img_in_url: bool§newline_to_br: boolImplementations§
Trait Implementations§
Source§impl Clone for BBCodeTagConfig
impl Clone for BBCodeTagConfig
Source§fn clone(&self) -> BBCodeTagConfig
fn clone(&self) -> BBCodeTagConfig
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 BBCodeTagConfig
impl Debug for BBCodeTagConfig
Auto Trait Implementations§
impl Freeze for BBCodeTagConfig
impl RefUnwindSafe for BBCodeTagConfig
impl Send for BBCodeTagConfig
impl Sync for BBCodeTagConfig
impl Unpin for BBCodeTagConfig
impl UnwindSafe for BBCodeTagConfig
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