pub struct ViewInfo {
pub view_pos_x: Option<i32>,
pub view_pos_y: Option<i32>,
pub view_pos_z: Option<i32>,
pub view_size_x: Option<i32>,
pub view_size_y: Option<i32>,
pub cursor_pos_x: Option<i32>,
pub cursor_pos_y: Option<i32>,
pub cursor_pos_z: Option<i32>,
pub follow_unit_id: Option<i32>,
pub follow_item_id: Option<i32>,
}Fields§
§view_pos_x: Option<i32>§view_pos_y: Option<i32>§view_pos_z: Option<i32>§view_size_x: Option<i32>§view_size_y: Option<i32>§cursor_pos_x: Option<i32>§cursor_pos_y: Option<i32>§cursor_pos_z: Option<i32>§follow_unit_id: Option<i32>§follow_item_id: Option<i32>Implementations§
Source§impl ViewInfo
impl ViewInfo
Sourcepub fn view_pos_x(&self) -> i32
pub fn view_pos_x(&self) -> i32
Returns the value of view_pos_x, or the default value if view_pos_x is unset.
Sourcepub fn view_pos_y(&self) -> i32
pub fn view_pos_y(&self) -> i32
Returns the value of view_pos_y, or the default value if view_pos_y is unset.
Sourcepub fn view_pos_z(&self) -> i32
pub fn view_pos_z(&self) -> i32
Returns the value of view_pos_z, or the default value if view_pos_z is unset.
Sourcepub fn view_size_x(&self) -> i32
pub fn view_size_x(&self) -> i32
Returns the value of view_size_x, or the default value if view_size_x is unset.
Sourcepub fn view_size_y(&self) -> i32
pub fn view_size_y(&self) -> i32
Returns the value of view_size_y, or the default value if view_size_y is unset.
Sourcepub fn cursor_pos_x(&self) -> i32
pub fn cursor_pos_x(&self) -> i32
Returns the value of cursor_pos_x, or the default value if cursor_pos_x is unset.
Sourcepub fn cursor_pos_y(&self) -> i32
pub fn cursor_pos_y(&self) -> i32
Returns the value of cursor_pos_y, or the default value if cursor_pos_y is unset.
Sourcepub fn cursor_pos_z(&self) -> i32
pub fn cursor_pos_z(&self) -> i32
Returns the value of cursor_pos_z, or the default value if cursor_pos_z is unset.
Sourcepub fn follow_unit_id(&self) -> i32
pub fn follow_unit_id(&self) -> i32
Returns the value of follow_unit_id, or the default value if follow_unit_id is unset.
Sourcepub fn follow_item_id(&self) -> i32
pub fn follow_item_id(&self) -> i32
Returns the value of follow_item_id, or the default value if follow_item_id is unset.
Trait Implementations§
Source§impl Message for ViewInfo
impl Message for ViewInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl Name for ViewInfo
impl Name for ViewInfo
Source§const NAME: &'static str = "ViewInfo"
const NAME: &'static str = "ViewInfo"
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"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
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.