pub struct TestDummy {Show 18 fields
pub id: u64,
pub bool_value: bool,
pub created_at: Option<Timestamp>,
pub enum_test: i32,
pub float_value: f64,
pub game: Option<Game>,
pub integer_array: Vec<i32>,
pub integer_value: i32,
pub name: String,
pub new_integer_value: i32,
pub private: bool,
pub slug: String,
pub string_array: Vec<String>,
pub test_dummies: Vec<TestDummy>,
pub test_dummy: Option<Box<TestDummy>>,
pub updated_at: Option<Timestamp>,
pub url: String,
pub checksum: String,
}
Fields§
§id: u64
§bool_value: bool
§created_at: Option<Timestamp>
§enum_test: i32
§float_value: f64
§game: Option<Game>
§integer_array: Vec<i32>
§integer_value: i32
§name: String
§new_integer_value: i32
§private: bool
§slug: String
§string_array: Vec<String>
§test_dummies: Vec<TestDummy>
§test_dummy: Option<Box<TestDummy>>
§updated_at: Option<Timestamp>
§url: String
§checksum: String
Implementations§
Source§impl TestDummy
impl TestDummy
Sourcepub fn enum_test(&self) -> TestDummyEnumTestEnum
pub fn enum_test(&self) -> TestDummyEnumTestEnum
Returns the enum value of enum_test
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_enum_test(&mut self, value: TestDummyEnumTestEnum)
pub fn set_enum_test(&mut self, value: TestDummyEnumTestEnum)
Sets enum_test
to the provided enum value.
Trait Implementations§
Source§impl Message for TestDummy
impl Message for TestDummy
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_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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 encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
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
.impl StructuralPartialEq for TestDummy
Auto Trait Implementations§
impl Freeze for TestDummy
impl RefUnwindSafe for TestDummy
impl Send for TestDummy
impl Sync for TestDummy
impl Unpin for TestDummy
impl UnwindSafe for TestDummy
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