pub struct CreatureRaw {
pub index: Option<i32>,
pub creature_id: Option<String>,
pub name: Vec<String>,
pub general_baby_name: Vec<String>,
pub general_child_name: Vec<String>,
pub creature_tile: Option<i32>,
pub creature_soldier_tile: Option<i32>,
pub color: Option<ColorDefinition>,
pub adultsize: Option<i32>,
pub caste: Vec<CasteRaw>,
pub tissues: Vec<TissueRaw>,
pub flags: Vec<bool>,
}Fields§
§index: Option<i32>§creature_id: Option<String>§name: Vec<String>§general_baby_name: Vec<String>§general_child_name: Vec<String>§creature_tile: Option<i32>§creature_soldier_tile: Option<i32>§color: Option<ColorDefinition>§adultsize: Option<i32>§caste: Vec<CasteRaw>§tissues: Vec<TissueRaw>§flags: Vec<bool>Implementations§
Source§impl CreatureRaw
impl CreatureRaw
Sourcepub fn creature_id(&self) -> &str
pub fn creature_id(&self) -> &str
Returns the value of creature_id, or the default value if creature_id is unset.
Sourcepub fn creature_tile(&self) -> i32
pub fn creature_tile(&self) -> i32
Returns the value of creature_tile, or the default value if creature_tile is unset.
Sourcepub fn creature_soldier_tile(&self) -> i32
pub fn creature_soldier_tile(&self) -> i32
Returns the value of creature_soldier_tile, or the default value if creature_soldier_tile is unset.
Trait Implementations§
Source§impl Clone for CreatureRaw
impl Clone for CreatureRaw
Source§fn clone(&self) -> CreatureRaw
fn clone(&self) -> CreatureRaw
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 CreatureRaw
impl Debug for CreatureRaw
Source§impl Default for CreatureRaw
impl Default for CreatureRaw
Source§impl Message for CreatureRaw
impl Message for CreatureRaw
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl Name for CreatureRaw
impl Name for CreatureRaw
Source§const NAME: &'static str = "CreatureRaw"
const NAME: &'static str = "CreatureRaw"
Simple name for this
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "RemoteFortressReader"
const PACKAGE: &'static str = "RemoteFortressReader"
Package name this message type is contained in. They are domain-like
and delimited by
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Fully-qualified unique name for this
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for CreatureRaw
impl PartialEq for CreatureRaw
Source§impl Serialize for CreatureRaw
impl Serialize for CreatureRaw
impl StructuralPartialEq for CreatureRaw
Auto Trait Implementations§
impl Freeze for CreatureRaw
impl RefUnwindSafe for CreatureRaw
impl Send for CreatureRaw
impl Sync for CreatureRaw
impl Unpin for CreatureRaw
impl UnsafeUnpin for CreatureRaw
impl UnwindSafe for CreatureRaw
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