pub struct CodecMetadataOptions { /* private fields */ }Expand description
Options for codec metadata.
Implementations§
Source§impl CodecMetadataOptions
impl CodecMetadataOptions
Sourcepub fn codec_store_metadata_if_encode_only(&self) -> bool
pub fn codec_store_metadata_if_encode_only(&self) -> bool
Return the store metadata if encode only setting.
Sourcepub fn with_codec_store_metadata_if_encode_only(
self,
enabled: bool,
) -> CodecMetadataOptions
pub fn with_codec_store_metadata_if_encode_only( self, enabled: bool, ) -> CodecMetadataOptions
Set the store metadata if encode only setting.
Sourcepub fn set_codec_store_metadata_if_encode_only(
&mut self,
enabled: bool,
) -> &mut CodecMetadataOptions
pub fn set_codec_store_metadata_if_encode_only( &mut self, enabled: bool, ) -> &mut CodecMetadataOptions
Set the codec store metadata if encode only setting.
Trait Implementations§
Source§impl Clone for CodecMetadataOptions
impl Clone for CodecMetadataOptions
Source§fn clone(&self) -> CodecMetadataOptions
fn clone(&self) -> CodecMetadataOptions
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 moreSource§impl Debug for CodecMetadataOptions
impl Debug for CodecMetadataOptions
Source§impl Default for CodecMetadataOptions
impl Default for CodecMetadataOptions
Source§fn default() -> CodecMetadataOptions
fn default() -> CodecMetadataOptions
Returns the “default value” for a type. Read more
impl Copy for CodecMetadataOptions
Auto Trait Implementations§
impl Freeze for CodecMetadataOptions
impl Send for CodecMetadataOptions
impl Sync for CodecMetadataOptions
impl RefUnwindSafe for CodecMetadataOptions
impl Unpin for CodecMetadataOptions
impl UnsafeUnpin for CodecMetadataOptions
impl UnwindSafe for CodecMetadataOptions
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> 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