Struct ibdl_core::ImageBoardArg
source · pub struct ImageBoardArg(_);
Methods from Deref<Target = ImageBoards>
sourcepub fn post_url(&self) -> &'static str
pub fn post_url(&self) -> &'static str
Returns the endpoint for the post list with their respective tags.
sourcepub async fn read_config_from_fs(
&self
) -> impl Future<Output = Result<Option<ImageboardConfig>, AuthError>>
pub async fn read_config_from_fs(
&self
) -> impl Future<Output = Result<Option<ImageboardConfig>, AuthError>>
Reads and parses the authentication cache from the path provided by auth_cache_dir
.
Returns None
if the file is corrupted or does not exist.
Trait Implementations
sourceimpl Clone for ImageBoardArg
impl Clone for ImageBoardArg
sourcefn clone(&self) -> ImageBoardArg
fn clone(&self) -> ImageBoardArg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageBoardArg
impl Debug for ImageBoardArg
sourceimpl Deref for ImageBoardArg
impl Deref for ImageBoardArg
type Target = ImageBoards
type Target = ImageBoards
The resulting type after dereferencing.
sourceimpl ValueEnum for ImageBoardArg
impl ValueEnum for ImageBoardArg
sourcefn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
All possible argument values, in display order.
sourcefn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
The canonical argument value. Read more
impl Copy for ImageBoardArg
Auto Trait Implementations
impl RefUnwindSafe for ImageBoardArg
impl Send for ImageBoardArg
impl Sync for ImageBoardArg
impl Unpin for ImageBoardArg
impl UnwindSafe for ImageBoardArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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