pub struct MapInfo {
pub block_size_x: Option<i32>,
pub block_size_y: Option<i32>,
pub block_size_z: Option<i32>,
pub block_pos_x: Option<i32>,
pub block_pos_y: Option<i32>,
pub block_pos_z: Option<i32>,
pub world_name: Option<String>,
pub world_name_english: Option<String>,
pub save_name: Option<String>,
}Fields§
§block_size_x: Option<i32>§block_size_y: Option<i32>§block_size_z: Option<i32>§block_pos_x: Option<i32>§block_pos_y: Option<i32>§block_pos_z: Option<i32>§world_name: Option<String>§world_name_english: Option<String>§save_name: Option<String>Implementations§
Source§impl MapInfo
impl MapInfo
Sourcepub fn block_size_x(&self) -> i32
pub fn block_size_x(&self) -> i32
Returns the value of block_size_x, or the default value if block_size_x is unset.
Sourcepub fn block_size_y(&self) -> i32
pub fn block_size_y(&self) -> i32
Returns the value of block_size_y, or the default value if block_size_y is unset.
Sourcepub fn block_size_z(&self) -> i32
pub fn block_size_z(&self) -> i32
Returns the value of block_size_z, or the default value if block_size_z is unset.
Sourcepub fn block_pos_x(&self) -> i32
pub fn block_pos_x(&self) -> i32
Returns the value of block_pos_x, or the default value if block_pos_x is unset.
Sourcepub fn block_pos_y(&self) -> i32
pub fn block_pos_y(&self) -> i32
Returns the value of block_pos_y, or the default value if block_pos_y is unset.
Sourcepub fn block_pos_z(&self) -> i32
pub fn block_pos_z(&self) -> i32
Returns the value of block_pos_z, or the default value if block_pos_z is unset.
Sourcepub fn world_name(&self) -> &str
pub fn world_name(&self) -> &str
Returns the value of world_name, or the default value if world_name is unset.
Sourcepub fn world_name_english(&self) -> &str
pub fn world_name_english(&self) -> &str
Returns the value of world_name_english, or the default value if world_name_english is unset.
Trait Implementations§
Source§impl Message for MapInfo
impl Message for MapInfo
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 MapInfo
impl Name for MapInfo
Source§const NAME: &'static str = "MapInfo"
const NAME: &'static str = "MapInfo"
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 Eq for MapInfo
impl StructuralPartialEq for MapInfo
Auto Trait Implementations§
impl Freeze for MapInfo
impl RefUnwindSafe for MapInfo
impl Send for MapInfo
impl Sync for MapInfo
impl Unpin for MapInfo
impl UnsafeUnpin for MapInfo
impl UnwindSafe for MapInfo
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