[][src]Struct trawler::TrawlerRequest

#[non_exhaustive]pub struct TrawlerRequest {
    pub user: Option<UserId>,
    pub page: LobstersRequest,
    pub is_priming: bool,
}

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)

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,