pub struct Request {
pub api_url: String,
pub req_limit: usize,
pub tags: Vec<&'static str>,
pub json: bool,
pub ids: HashMap<String, Option<usize>>,
}Fields§
§api_url: StringDefault API Access URL “https://api.rule34.xxx/index.php?page=dapi&s=post&q=index”
req_limit: usizeLimitter for max Post per requests. R34s API limmits to max 1000 Posts per request. Default Setting is 1000.
All R34 tags should work when exactly taken over. Default is empty.
json: boolJson Formatted or not Json Formatted: Default is true.
ids: HashMap<String, Option<usize>>Hashmap with the three IDs: ID: Filter for ID of Post. (Recommended to use alone)! PID: Filter for Page ID. CID: Filter for Change ID (Not Recomended)! By Default all are empty.
Implementations§
source§impl Request
impl Request
sourcepub fn set_json_formatted(self, json: bool) -> Self
pub fn set_json_formatted(self, json: bool) -> Self
Activates a Json Formatted Request
sourcepub fn to_req_url(&mut self) -> String
pub fn to_req_url(&mut self) -> String
Returns the Final Request URL as a String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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