pub struct Board {Show 29 fields
pub board: String,
pub title: String,
pub meta_description: String,
pub ws_board: u8,
pub per_page: u32,
pub pages: u32,
pub max_filesize: u64,
pub max_webm_filesize: u64,
pub max_comment_chars: u32,
pub max_webm_duration: u32,
pub bump_limit: u32,
pub image_limit: u32,
pub cooldowns: Cooldowns,
pub spoilers: u8,
pub custom_spoilers: u8,
pub is_archived: u8,
pub country_flags: u8,
pub user_ids: u8,
pub oekaki: u8,
pub sjis_tags: u8,
pub code_tags: u8,
pub math_tags: u8,
pub text_only: u8,
pub forced_anon: u8,
pub webm_audio: u8,
pub require_subject: u8,
pub min_image_width: u32,
pub min_image_height: u32,
pub board_flags: Option<HashMap<String, String>>,
}Expand description
A single board, as returned by boards.json.
Fields§
§board: StringShort slug.
title: String§meta_description: String§ws_board: u81 if work-safe.
per_page: u32§pages: u32§max_filesize: u64§max_webm_filesize: u64§max_comment_chars: u32§max_webm_duration: u32§bump_limit: u32§image_limit: u32§cooldowns: Cooldowns§spoilers: u8§custom_spoilers: u8§is_archived: u8§country_flags: u8§user_ids: u8§oekaki: u8§text_only: u8§forced_anon: u8§webm_audio: u8§require_subject: u8§min_image_width: u32§min_image_height: u32§board_flags: Option<HashMap<String, String>>Map of board-specific flag codes to display names, if the board has them.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Board
impl<'de> Deserialize<'de> for Board
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Board
impl RefUnwindSafe for Board
impl Send for Board
impl Sync for Board
impl Unpin for Board
impl UnsafeUnpin for Board
impl UnwindSafe for Board
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