pub struct CollapsingResponse<R> {
    pub header_response: Response,
    pub body_response: Option<Response>,
    pub body_returned: Option<R>,
    pub openness: f32,
}
Expand description

The response from showing a CollapsingHeader.

Fields

header_response: Response

Response of the actual clickable header.

body_response: Option<Response>

None iff collapsed.

body_returned: Option<R>

None iff collapsed.

openness: f32

0.0 if fully closed, 1.0 if fully open, and something in-between while animating.

Implementations

Was the CollapsingHeader fully closed (and not being animated)?

Was the CollapsingHeader fully open (and not being animated)?

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.