pub struct BodyCompressionBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the BodyCompression type.
Can be created using the BodyCompression::builder method.
Implementations§
Source§impl BodyCompressionBuilder<()>
impl BodyCompressionBuilder<()>
Sourcepub fn codec<T0>(self, value: T0) -> BodyCompressionBuilder<(T0,)>
pub fn codec<T0>(self, value: T0) -> BodyCompressionBuilder<(T0,)>
Setter for the codec field.
Sourcepub fn codec_as_default(self) -> BodyCompressionBuilder<(DefaultValue,)>
pub fn codec_as_default(self) -> BodyCompressionBuilder<(DefaultValue,)>
Sets the codec field to the default value.
Source§impl<T0> BodyCompressionBuilder<(T0,)>
impl<T0> BodyCompressionBuilder<(T0,)>
Sourcepub fn method<T1>(self, value: T1) -> BodyCompressionBuilder<(T0, T1)>
pub fn method<T1>(self, value: T1) -> BodyCompressionBuilder<(T0, T1)>
Setter for the method field.
Sourcepub fn method_as_default(self) -> BodyCompressionBuilder<(T0, DefaultValue)>
pub fn method_as_default(self) -> BodyCompressionBuilder<(T0, DefaultValue)>
Sets the method field to the default value.
Source§impl<T0, T1> BodyCompressionBuilder<(T0, T1)>
impl<T0, T1> BodyCompressionBuilder<(T0, T1)>
Sourcepub fn finish(self, builder: &mut Builder) -> Offset<BodyCompression>where
Self: WriteAsOffset<BodyCompression>,
pub fn finish(self, builder: &mut Builder) -> Offset<BodyCompression>where
Self: WriteAsOffset<BodyCompression>,
Finish writing the builder to get an Offset to a serialized BodyCompression.
Trait Implementations§
Source§impl<State: Debug> Debug for BodyCompressionBuilder<State>
impl<State: Debug> Debug for BodyCompressionBuilder<State>
impl<T0: WriteAsDefault<CompressionType, CompressionType>, T1: WriteAsDefault<BodyCompressionMethod, BodyCompressionMethod>> WriteAs<Offset<BodyCompression>> for BodyCompressionBuilder<(T0, T1)>
impl<T0: WriteAsDefault<CompressionType, CompressionType>, T1: WriteAsDefault<BodyCompressionMethod, BodyCompressionMethod>> WriteAsOffset<BodyCompression> for BodyCompressionBuilder<(T0, T1)>
impl<T0: WriteAsDefault<CompressionType, CompressionType>, T1: WriteAsDefault<BodyCompressionMethod, BodyCompressionMethod>> WriteAsOptional<Offset<BodyCompression>> for BodyCompressionBuilder<(T0, T1)>
Auto Trait Implementations§
impl<State> Freeze for BodyCompressionBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for BodyCompressionBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for BodyCompressionBuilder<State>where
State: Send,
impl<State> Sync for BodyCompressionBuilder<State>where
State: Sync,
impl<State> Unpin for BodyCompressionBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for BodyCompressionBuilder<State>where
State: UnwindSafe,
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> 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