pub struct PartView<'a> {
pub metadata: MessageFieldView<StructView<'a>>,
pub filename: &'a str,
pub media_type: &'a str,
pub content: Option<ContentView<'a>>,
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Fields§
§metadata: MessageFieldView<StructView<'a>>Field 5: metadata
filename: &'a strField 6: filename
media_type: &'a strField 7: media_type
content: Option<ContentView<'a>>§__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl DefaultViewInstance for PartView<'static>
impl DefaultViewInstance for PartView<'static>
Source§fn default_view_instance() -> &'static Self
fn default_view_instance() -> &'static Self
Return a reference to the single default view instance.
Source§impl<'a> HasDefaultViewInstance for PartView<'a>
impl<'a> HasDefaultViewInstance for PartView<'a>
Source§impl<'a> MessageView<'a> for PartView<'a>
impl<'a> MessageView<'a> for PartView<'a>
Source§fn to_owned_message(&self) -> Part
fn to_owned_message(&self) -> Part
Convert this view to the owned message type.
Source§fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
Decode a view from a buffer, borrowing string/bytes fields directly. Read more
Source§fn decode_view_with_limit(
buf: &'a [u8],
depth: u32,
) -> Result<Self, DecodeError>
fn decode_view_with_limit( buf: &'a [u8], depth: u32, ) -> Result<Self, DecodeError>
Decode a view with a custom recursion depth limit. Read more
Auto Trait Implementations§
impl<'a> Freeze for PartView<'a>
impl<'a> RefUnwindSafe for PartView<'a>
impl<'a> Send for PartView<'a>
impl<'a> Sync for PartView<'a>
impl<'a> Unpin for PartView<'a>
impl<'a> UnsafeUnpin for PartView<'a>
impl<'a> UnwindSafe for PartView<'a>
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> 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