#[non_exhaustive]pub struct TrawlerRequest {
pub user: Option<UserId>,
pub page: LobstersRequest,
pub is_priming: bool,
}
Expand description
A lobste.rs request made as part of a workload.
Trawler generates requests of this type that correspond to “real” lobste.rs website requests.
Trawler does not check that the implementor correctly perform the queries corresponding to each request; this must be verified with manual inspection of the Rails application or its query logs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user: Option<UserId>
The user making the request.
page: LobstersRequest
The specific page to be requested/rendered.
is_priming: bool
is_priming
is set to true if the request is being issued just to populate the database.
In this case, the backend need only issue writes and not do any other processing normally
associated with the given request
.
Auto Trait Implementations§
impl Freeze for TrawlerRequest
impl RefUnwindSafe for TrawlerRequest
impl Send for TrawlerRequest
impl Sync for TrawlerRequest
impl Unpin for TrawlerRequest
impl UnwindSafe for TrawlerRequest
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