pub struct InputMetadata {
pub accept_content_type: &'static str,
pub is_required: bool,
}
Expand description
This struct encapsulates input payload metadata used by discovery.
The default implementation works well with Json payloads.
Fields§
§accept_content_type: &'static str
Content type of the input. It can accept wildcards, in the same format as the ‘Accept’ header.
By default, is application/json
.
is_required: bool
If true, Restate itself will reject requests without content-types.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputMetadata
impl RefUnwindSafe for InputMetadata
impl Send for InputMetadata
impl Sync for InputMetadata
impl Unpin for InputMetadata
impl UnwindSafe for InputMetadata
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more