Enum pact_plugin_driver::proto::body::ContentTypeHint
source · #[repr(i32)]
pub enum ContentTypeHint {
Default,
Text,
Binary,
}Expand description
Enum of content type override. This is a hint on how the content type should be treated.
Variants§
Default
Determine the form of the content using the default rules of the Pact implementation
Text
Contents must always be treated as a text form
Binary
Contents must always be treated as a binary form
Implementations§
source§impl ContentTypeHint
impl ContentTypeHint
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations§
source§impl Clone for ContentTypeHint
impl Clone for ContentTypeHint
source§fn clone(&self) -> ContentTypeHint
fn clone(&self) -> ContentTypeHint
Returns a copy 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 moresource§impl Debug for ContentTypeHint
impl Debug for ContentTypeHint
source§impl Default for ContentTypeHint
impl Default for ContentTypeHint
source§fn default() -> ContentTypeHint
fn default() -> ContentTypeHint
Returns the “default value” for a type. Read more
source§impl From<ContentTypeHint> for i32
impl From<ContentTypeHint> for i32
source§fn from(value: ContentTypeHint) -> i32
fn from(value: ContentTypeHint) -> i32
Converts to this type from the input type.
source§impl Hash for ContentTypeHint
impl Hash for ContentTypeHint
source§impl Ord for ContentTypeHint
impl Ord for ContentTypeHint
source§fn cmp(&self, other: &ContentTypeHint) -> Ordering
fn cmp(&self, other: &ContentTypeHint) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ContentTypeHint> for ContentTypeHint
impl PartialEq<ContentTypeHint> for ContentTypeHint
source§fn eq(&self, other: &ContentTypeHint) -> bool
fn eq(&self, other: &ContentTypeHint) -> bool
source§impl PartialOrd<ContentTypeHint> for ContentTypeHint
impl PartialOrd<ContentTypeHint> for ContentTypeHint
source§fn partial_cmp(&self, other: &ContentTypeHint) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentTypeHint) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ContentTypeHint
impl Eq for ContentTypeHint
impl StructuralEq for ContentTypeHint
impl StructuralPartialEq for ContentTypeHint
Auto Trait Implementations§
impl RefUnwindSafe for ContentTypeHint
impl Send for ContentTypeHint
impl Sync for ContentTypeHint
impl Unpin for ContentTypeHint
impl UnwindSafe for ContentTypeHint
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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