Struct torrust_index_backend::config::Api
source · pub struct Api {
pub default_torrent_page_size: u8,
pub max_torrent_page_size: u8,
}
Expand description
Core configuration for the API
Fields§
§default_torrent_page_size: u8
The default page size for torrent lists.
max_torrent_page_size: u8
The maximum page size for torrent lists.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Api
impl<'de> Deserialize<'de> for Api
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 RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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