pub struct NodeProperty {
pub property: Option<Property>,
}
Fields§
§property: Option<Property>
Implementations§
Source§impl NodeProperty
impl NodeProperty
pub fn as_str_prop(&self) -> Option<&str>
pub fn as_uint_prop(&self) -> Option<u64>
pub fn as_int_prop(&self) -> Option<i64>
Trait Implementations§
Source§impl Clone for NodeProperty
impl Clone for NodeProperty
Source§fn clone(&self) -> NodeProperty
fn clone(&self) -> NodeProperty
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 NodeProperty
impl Debug for NodeProperty
Source§impl Default for NodeProperty
impl Default for NodeProperty
Source§fn default() -> NodeProperty
fn default() -> NodeProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeProperty
impl<'de> Deserialize<'de> for NodeProperty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<String> for NodeProperty
impl From<String> for NodeProperty
Source§fn from(s: String) -> NodeProperty
fn from(s: String) -> NodeProperty
Converts to this type from the input type.
Source§impl From<i64> for NodeProperty
impl From<i64> for NodeProperty
Source§fn from(i: i64) -> NodeProperty
fn from(i: i64) -> NodeProperty
Converts to this type from the input type.
Source§impl From<u64> for NodeProperty
impl From<u64> for NodeProperty
Source§fn from(i: u64) -> NodeProperty
fn from(i: u64) -> NodeProperty
Converts to this type from the input type.
Source§impl Message for NodeProperty
impl Message for NodeProperty
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for NodeProperty
impl PartialEq for NodeProperty
Source§impl Serialize for NodeProperty
impl Serialize for NodeProperty
Source§impl ToString for NodeProperty
impl ToString for NodeProperty
impl Eq for NodeProperty
impl StructuralPartialEq for NodeProperty
Auto Trait Implementations§
impl Freeze for NodeProperty
impl RefUnwindSafe for NodeProperty
impl Send for NodeProperty
impl Sync for NodeProperty
impl Unpin for NodeProperty
impl UnwindSafe for NodeProperty
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