pub struct CallbackSpec {
pub callback_url_expression: String,
pub method: Method,
pub request_body_schema: Option<Value>,
}Expand description
Callback specification parsed from OpenAPI callbacks.
Fields§
§callback_url_expression: StringRuntime expression for the callback URL, e.g. "{$request.body#/callbackUrl}/notify".
method: MethodHTTP method for the outbound request.
request_body_schema: Option<Value>Optional JSON schema for the callback request body.
Trait Implementations§
Source§impl Clone for CallbackSpec
impl Clone for CallbackSpec
Source§fn clone(&self) -> CallbackSpec
fn clone(&self) -> CallbackSpec
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 CallbackSpec
impl RefUnwindSafe for CallbackSpec
impl Send for CallbackSpec
impl Sync for CallbackSpec
impl Unpin for CallbackSpec
impl UnsafeUnpin for CallbackSpec
impl UnwindSafe for CallbackSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request