Struct gmi2html::GeminiConverter
source · [−]pub struct GeminiConverter<'a> { /* private fields */ }
Implementations
sourceimpl<'a> GeminiConverter<'a>
impl<'a> GeminiConverter<'a>
sourcepub fn new(gmi_text: &'a str) -> Self
pub fn new(gmi_text: &'a str) -> Self
Initialize the builder with default configuration values.
sourcepub fn proxy_url(&mut self, proxy_url: &'a str) -> &mut Self
pub fn proxy_url(&mut self, proxy_url: &'a str) -> &mut Self
Replace gemini://
in URLS with this prefix for proxying, i.e. over HTTP. Requires trailing slash.
sourcepub fn inline_images(&mut self, option: bool) -> &mut Self
pub fn inline_images(&mut self, option: bool) -> &mut Self
Render relative-path images in-line. Default false. Beware that this can expose you to security issues if you’re not careful (e.g. malicious SVG)
Auto Trait Implementations
impl<'a> RefUnwindSafe for GeminiConverter<'a>
impl<'a> Send for GeminiConverter<'a>
impl<'a> Sync for GeminiConverter<'a>
impl<'a> Unpin for GeminiConverter<'a>
impl<'a> UnwindSafe for GeminiConverter<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more