pub struct JsonResponse { /* private fields */ }
Implementations§
Source§impl JsonResponse
impl JsonResponse
pub fn new<T: ToJson>(value: T, callback: Option<String>) -> JsonResponse
pub fn json<T: ToJson>(value: T) -> JsonResponse
pub fn jsonp<T: ToJson>(value: T, cb_name: String) -> JsonResponse
Trait Implementations§
Source§impl Clone for JsonResponse
impl Clone for JsonResponse
Source§fn clone(&self) -> JsonResponse
fn clone(&self) -> JsonResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for JsonResponse
impl RefUnwindSafe for JsonResponse
impl Send for JsonResponse
impl Sync for JsonResponse
impl Unpin for JsonResponse
impl UnwindSafe for JsonResponse
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