pub struct NestedMessage { /* private fields */ }Implementations§
Source§impl NestedMessage
impl NestedMessage
pub const EMPTY_PARSE_OK: bool = true
pub const FULL_NAME: &'static str = "protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage"
pub fn new() -> Self
pub fn a(&self) -> i32
pub fn set_a(&mut self, v: i32)
pub fn has_corecursive(&self) -> bool
pub fn corecursive(&self) -> &TestAllTypesProto3
pub fn corecursive_opt(&self) -> Option<&TestAllTypesProto3>
pub fn corecursive_view(&self) -> TestAllTypesProto3View<'_>
pub fn set_corecursive(&mut self, v: TestAllTypesProto3)
pub fn corecursive_mut(&mut self) -> &mut TestAllTypesProto3
pub fn clear_corecursive(&mut self)
pub fn to_json(&self) -> Result<String, SerializeError>
pub fn from_json(json: &str) -> Result<Self, ParseError>
pub fn from_json_ignore(json: &str, ignore: bool) -> Result<Self, ParseError>
pub fn to_text(&self) -> Result<String, SerializeError>
pub fn to_text_with_unknown(&self) -> Result<String, SerializeError>
pub fn from_text(text: &str) -> Result<Self, ParseError>
Trait Implementations§
Source§impl AsMut for NestedMessage
impl AsMut for NestedMessage
type MutProxied = NestedMessage
fn as_mut(&mut self) -> NestedMessageMut<'_>
Source§impl AsView for NestedMessage
impl AsView for NestedMessage
Source§impl ClearAndParse for NestedMessage
impl ClearAndParse for NestedMessage
const EMPTY_PARSE_OK: bool = NestedMessage::EMPTY_PARSE_OK
fn clear_and_parse(&mut self, data: &[u8]) -> Result<(), ParseError>
fn clear_and_parse_dont_enforce_required( &mut self, data: &[u8], ) -> Result<(), ParseError>
Source§fn merge_from_bytes(&mut self, data: &[u8]) -> Result<(), ParseError>
fn merge_from_bytes(&mut self, data: &[u8]) -> Result<(), ParseError>
Merge, retaining
data as shared backing for large fields (PK-09).
The default copies via Self::merge_from_bytes; generated messages
override this to window the shared buffer.fn merge_from_bytes_dont_enforce_required( &mut self, data: &[u8], ) -> Result<(), ParseError>
Source§impl Clone for NestedMessage
impl Clone for NestedMessage
Source§impl CopyFrom for NestedMessage
impl CopyFrom for NestedMessage
Source§impl Debug for NestedMessage
impl Debug for NestedMessage
Source§impl Default for NestedMessage
impl Default for NestedMessage
impl Eq for NestedMessage
Source§impl MergeBytes for NestedMessage
impl MergeBytes for NestedMessage
Source§impl MergeFrom for NestedMessage
impl MergeFrom for NestedMessage
fn merge_from(&mut self, src: impl AsView<Proxied = Self>)
Source§impl Message for NestedMessage
impl Message for NestedMessage
type MessageView<'msg> = NestedMessageView<'msg>
type MessageMut<'msg> = NestedMessageMut<'msg>
fn new() -> Self
Source§impl MessageName for NestedMessage
impl MessageName for NestedMessage
impl MessageType for NestedMessage
Source§impl MutProxied for NestedMessage
impl MutProxied for NestedMessage
Source§impl PartialEq for NestedMessage
impl PartialEq for NestedMessage
Source§impl Serialize for NestedMessage
impl Serialize for NestedMessage
Auto Trait Implementations§
impl !Freeze for NestedMessage
impl RefUnwindSafe for NestedMessage
impl Send for NestedMessage
impl Sync for NestedMessage
impl Unpin for NestedMessage
impl UnsafeUnpin for NestedMessage
impl UnwindSafe for NestedMessage
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> IntoProxied<T> for T
impl<T> IntoProxied<T> for T
fn into_proxied(self, _private: Private) -> T
impl<T> MapValue for Twhere
T: Clone + 'static,
Source§impl<T> Parse for Twhere
T: Default + ClearAndParse,
impl<T> Parse for Twhere
T: Default + ClearAndParse,
fn parse(serialized: &[u8]) -> Result<T, ParseError>
Source§fn parse_bytes(serialized: Bytes) -> Result<T, ParseError>
fn parse_bytes(serialized: Bytes) -> Result<T, ParseError>
Parse, retaining
serialized as shared backing for large fields
instead of copying (PK-09). Falls back to Self::parse unless the
message overrides
ClearAndParse::merge_from_bytes_shared.