pub struct PlantTile {
pub trunk: Option<bool>,
pub connection_east: Option<bool>,
pub connection_south: Option<bool>,
pub connection_west: Option<bool>,
pub connection_north: Option<bool>,
pub branches: Option<bool>,
pub twigs: Option<bool>,
pub tile_type: Option<i32>,
}Fields§
§trunk: Option<bool>§connection_east: Option<bool>§connection_south: Option<bool>§connection_west: Option<bool>§connection_north: Option<bool>§branches: Option<bool>§twigs: Option<bool>§tile_type: Option<i32>Implementations§
Source§impl PlantTile
impl PlantTile
Sourcepub fn trunk(&self) -> bool
pub fn trunk(&self) -> bool
Returns the value of trunk, or the default value if trunk is unset.
Sourcepub fn connection_east(&self) -> bool
pub fn connection_east(&self) -> bool
Returns the value of connection_east, or the default value if connection_east is unset.
Sourcepub fn connection_south(&self) -> bool
pub fn connection_south(&self) -> bool
Returns the value of connection_south, or the default value if connection_south is unset.
Sourcepub fn connection_west(&self) -> bool
pub fn connection_west(&self) -> bool
Returns the value of connection_west, or the default value if connection_west is unset.
Sourcepub fn connection_north(&self) -> bool
pub fn connection_north(&self) -> bool
Returns the value of connection_north, or the default value if connection_north is unset.
Sourcepub fn branches(&self) -> bool
pub fn branches(&self) -> bool
Returns the value of branches, or the default value if branches is unset.
Sourcepub fn twigs(&self) -> bool
pub fn twigs(&self) -> bool
Returns the value of twigs, or the default value if twigs is unset.
Sourcepub fn tile_type(&self) -> TiletypeSpecial
pub fn tile_type(&self) -> TiletypeSpecial
Returns the enum value of tile_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_tile_type(&mut self, value: TiletypeSpecial)
pub fn set_tile_type(&mut self, value: TiletypeSpecial)
Sets tile_type to the provided enum value.
Trait Implementations§
Source§impl Message for PlantTile
impl Message for PlantTile
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 PlantTile
impl Name for PlantTile
Source§const NAME: &'static str = "PlantTile"
const NAME: &'static str = "PlantTile"
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.impl Copy for PlantTile
impl Eq for PlantTile
impl StructuralPartialEq for PlantTile
Auto Trait Implementations§
impl Freeze for PlantTile
impl RefUnwindSafe for PlantTile
impl Send for PlantTile
impl Sync for PlantTile
impl Unpin for PlantTile
impl UnsafeUnpin for PlantTile
impl UnwindSafe for PlantTile
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