pub enum ImageBoards {
Danbooru,
E621,
GelbooruV0_2,
Moebooru,
Gelbooru,
}
Expand description
All currently supported imageboards and their underlying attributes
Variants§
Danbooru
Represents the website https://danbooru.donmai.us
or it’s safe variant https://safebooru.donmai.us
.
E621
Represents the website https://e621.net
or it’s safe variant https://e926.net
.
GelbooruV0_2
Represents the website http://realbooru.com
Moebooru
Represents the website https://konachan.com
or it’s safe variant https://konachan.net
.
Gelbooru
Represents the website https://gelbooru.com
.
Implementations§
Source§impl ImageBoards
impl ImageBoards
Sourcepub fn auth_cache_dir() -> Result<PathBuf, Error>
pub fn auth_cache_dir() -> Result<PathBuf, Error>
Returns a PathBuf
pointing to the imageboard’s authentication cache.
This is XDG-compliant and saves cache files to
$XDG_CONFIG_HOME/imageboard-downloader/<imageboard>
on Linux or
%APPDATA%/FerrahWolfeh/imageboard-downloader/<imageboard>
on Windows
Or you can set the env var IBDL_CACHE_DIR
to point it to a custom location.
Trait Implementations§
Source§impl Clone for ImageBoards
impl Clone for ImageBoards
Source§fn clone(&self) -> ImageBoards
fn clone(&self) -> ImageBoards
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ImageBoards
impl Debug for ImageBoards
Source§impl<'de> Deserialize<'de> for ImageBoards
impl<'de> Deserialize<'de> for ImageBoards
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>,
Source§impl Display for ImageBoards
impl Display for ImageBoards
Source§impl FromStr for ImageBoards
impl FromStr for ImageBoards
Source§impl Ord for ImageBoards
impl Ord for ImageBoards
Source§fn cmp(&self, other: &ImageBoards) -> Ordering
fn cmp(&self, other: &ImageBoards) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ImageBoards
impl PartialEq for ImageBoards
Source§impl PartialOrd for ImageBoards
impl PartialOrd for ImageBoards
Source§impl Serialize for ImageBoards
impl Serialize for ImageBoards
impl Copy for ImageBoards
impl Eq for ImageBoards
impl StructuralPartialEq for ImageBoards
Auto Trait Implementations§
impl Freeze for ImageBoards
impl RefUnwindSafe for ImageBoards
impl Send for ImageBoards
impl Sync for ImageBoards
impl Unpin for ImageBoards
impl UnwindSafe for ImageBoards
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.