pub struct ForwardOptions {
pub pretty: bool,
pub cache: Option<Duration>,
}Expand description
Options controlling how Rpc::forward builds its response.
Fields§
§pretty: boolPretty-print the JSON body.
cache: Option<Duration>If set, emit Cache-Control: public, max-age=<seconds>.
Trait Implementations§
Source§impl Clone for ForwardOptions
impl Clone for ForwardOptions
Source§fn clone(&self) -> ForwardOptions
fn clone(&self) -> ForwardOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForwardOptions
impl Debug for ForwardOptions
Source§impl Default for ForwardOptions
impl Default for ForwardOptions
Source§fn default() -> ForwardOptions
fn default() -> ForwardOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForwardOptions
impl RefUnwindSafe for ForwardOptions
impl Send for ForwardOptions
impl Sync for ForwardOptions
impl Unpin for ForwardOptions
impl UnsafeUnpin for ForwardOptions
impl UnwindSafe for ForwardOptions
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