Struct dfhack_proto::messages::StockpileSettings
source · pub struct StockpileSettings {Show 18 fields
pub animals: SingularPtrField<StockpileSettings_AnimalsSet>,
pub food: SingularPtrField<StockpileSettings_FoodSet>,
pub furniture: SingularPtrField<StockpileSettings_FurnitureSet>,
pub refuse: SingularPtrField<StockpileSettings_RefuseSet>,
pub stone: SingularPtrField<StockpileSettings_StoneSet>,
pub ore: SingularPtrField<StockpileSettings_OreSet>,
pub ammo: SingularPtrField<StockpileSettings_AmmoSet>,
pub coin: SingularPtrField<StockpileSettings_CoinSet>,
pub barsblocks: SingularPtrField<StockpileSettings_BarsBlocksSet>,
pub gems: SingularPtrField<StockpileSettings_GemsSet>,
pub finished_goods: SingularPtrField<StockpileSettings_FinishedGoodsSet>,
pub leather: SingularPtrField<StockpileSettings_LeatherSet>,
pub cloth: SingularPtrField<StockpileSettings_ClothSet>,
pub wood: SingularPtrField<StockpileSettings_WoodSet>,
pub weapons: SingularPtrField<StockpileSettings_WeaponsSet>,
pub armor: SingularPtrField<StockpileSettings_ArmorSet>,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
/* private fields */
}Expand description
Generated files are compatible only with the same version of protobuf runtime.
Fields§
§animals: SingularPtrField<StockpileSettings_AnimalsSet>§food: SingularPtrField<StockpileSettings_FoodSet>§furniture: SingularPtrField<StockpileSettings_FurnitureSet>§refuse: SingularPtrField<StockpileSettings_RefuseSet>§stone: SingularPtrField<StockpileSettings_StoneSet>§ore: SingularPtrField<StockpileSettings_OreSet>§ammo: SingularPtrField<StockpileSettings_AmmoSet>§coin: SingularPtrField<StockpileSettings_CoinSet>§barsblocks: SingularPtrField<StockpileSettings_BarsBlocksSet>§gems: SingularPtrField<StockpileSettings_GemsSet>§finished_goods: SingularPtrField<StockpileSettings_FinishedGoodsSet>§leather: SingularPtrField<StockpileSettings_LeatherSet>§cloth: SingularPtrField<StockpileSettings_ClothSet>§wood: SingularPtrField<StockpileSettings_WoodSet>§weapons: SingularPtrField<StockpileSettings_WeaponsSet>§armor: SingularPtrField<StockpileSettings_ArmorSet>§unknown_fields: UnknownFields§cached_size: CachedSizeImplementations§
source§impl StockpileSettings
impl StockpileSettings
pub fn new() -> StockpileSettings
pub fn get_animals(&self) -> &StockpileSettings_AnimalsSet
pub fn clear_animals(&mut self)
pub fn has_animals(&self) -> bool
pub fn set_animals(&mut self, v: StockpileSettings_AnimalsSet)
pub fn mut_animals(&mut self) -> &mut StockpileSettings_AnimalsSet
pub fn take_animals(&mut self) -> StockpileSettings_AnimalsSet
pub fn get_food(&self) -> &StockpileSettings_FoodSet
pub fn clear_food(&mut self)
pub fn has_food(&self) -> bool
pub fn set_food(&mut self, v: StockpileSettings_FoodSet)
pub fn mut_food(&mut self) -> &mut StockpileSettings_FoodSet
pub fn take_food(&mut self) -> StockpileSettings_FoodSet
pub fn get_furniture(&self) -> &StockpileSettings_FurnitureSet
pub fn clear_furniture(&mut self)
pub fn has_furniture(&self) -> bool
pub fn set_furniture(&mut self, v: StockpileSettings_FurnitureSet)
pub fn mut_furniture(&mut self) -> &mut StockpileSettings_FurnitureSet
pub fn take_furniture(&mut self) -> StockpileSettings_FurnitureSet
pub fn get_unknown1(&self) -> i32
pub fn clear_unknown1(&mut self)
pub fn has_unknown1(&self) -> bool
pub fn set_unknown1(&mut self, v: i32)
pub fn get_refuse(&self) -> &StockpileSettings_RefuseSet
pub fn clear_refuse(&mut self)
pub fn has_refuse(&self) -> bool
pub fn set_refuse(&mut self, v: StockpileSettings_RefuseSet)
pub fn mut_refuse(&mut self) -> &mut StockpileSettings_RefuseSet
pub fn take_refuse(&mut self) -> StockpileSettings_RefuseSet
pub fn get_stone(&self) -> &StockpileSettings_StoneSet
pub fn clear_stone(&mut self)
pub fn has_stone(&self) -> bool
pub fn set_stone(&mut self, v: StockpileSettings_StoneSet)
pub fn mut_stone(&mut self) -> &mut StockpileSettings_StoneSet
pub fn take_stone(&mut self) -> StockpileSettings_StoneSet
pub fn get_ore(&self) -> &StockpileSettings_OreSet
pub fn clear_ore(&mut self)
pub fn has_ore(&self) -> bool
pub fn set_ore(&mut self, v: StockpileSettings_OreSet)
pub fn mut_ore(&mut self) -> &mut StockpileSettings_OreSet
pub fn take_ore(&mut self) -> StockpileSettings_OreSet
pub fn get_ammo(&self) -> &StockpileSettings_AmmoSet
pub fn clear_ammo(&mut self)
pub fn has_ammo(&self) -> bool
pub fn set_ammo(&mut self, v: StockpileSettings_AmmoSet)
pub fn mut_ammo(&mut self) -> &mut StockpileSettings_AmmoSet
pub fn take_ammo(&mut self) -> StockpileSettings_AmmoSet
pub fn get_coin(&self) -> &StockpileSettings_CoinSet
pub fn clear_coin(&mut self)
pub fn has_coin(&self) -> bool
pub fn set_coin(&mut self, v: StockpileSettings_CoinSet)
pub fn mut_coin(&mut self) -> &mut StockpileSettings_CoinSet
pub fn take_coin(&mut self) -> StockpileSettings_CoinSet
pub fn get_barsblocks(&self) -> &StockpileSettings_BarsBlocksSet
pub fn clear_barsblocks(&mut self)
pub fn has_barsblocks(&self) -> bool
pub fn set_barsblocks(&mut self, v: StockpileSettings_BarsBlocksSet)
pub fn mut_barsblocks(&mut self) -> &mut StockpileSettings_BarsBlocksSet
pub fn take_barsblocks(&mut self) -> StockpileSettings_BarsBlocksSet
pub fn get_gems(&self) -> &StockpileSettings_GemsSet
pub fn clear_gems(&mut self)
pub fn has_gems(&self) -> bool
pub fn set_gems(&mut self, v: StockpileSettings_GemsSet)
pub fn mut_gems(&mut self) -> &mut StockpileSettings_GemsSet
pub fn take_gems(&mut self) -> StockpileSettings_GemsSet
pub fn get_finished_goods(&self) -> &StockpileSettings_FinishedGoodsSet
pub fn clear_finished_goods(&mut self)
pub fn has_finished_goods(&self) -> bool
pub fn set_finished_goods(&mut self, v: StockpileSettings_FinishedGoodsSet)
pub fn mut_finished_goods(&mut self) -> &mut StockpileSettings_FinishedGoodsSet
pub fn take_finished_goods(&mut self) -> StockpileSettings_FinishedGoodsSet
pub fn get_leather(&self) -> &StockpileSettings_LeatherSet
pub fn clear_leather(&mut self)
pub fn has_leather(&self) -> bool
pub fn set_leather(&mut self, v: StockpileSettings_LeatherSet)
pub fn mut_leather(&mut self) -> &mut StockpileSettings_LeatherSet
pub fn take_leather(&mut self) -> StockpileSettings_LeatherSet
pub fn get_cloth(&self) -> &StockpileSettings_ClothSet
pub fn clear_cloth(&mut self)
pub fn has_cloth(&self) -> bool
pub fn set_cloth(&mut self, v: StockpileSettings_ClothSet)
pub fn mut_cloth(&mut self) -> &mut StockpileSettings_ClothSet
pub fn take_cloth(&mut self) -> StockpileSettings_ClothSet
pub fn get_wood(&self) -> &StockpileSettings_WoodSet
pub fn clear_wood(&mut self)
pub fn has_wood(&self) -> bool
pub fn set_wood(&mut self, v: StockpileSettings_WoodSet)
pub fn mut_wood(&mut self) -> &mut StockpileSettings_WoodSet
pub fn take_wood(&mut self) -> StockpileSettings_WoodSet
pub fn get_weapons(&self) -> &StockpileSettings_WeaponsSet
pub fn clear_weapons(&mut self)
pub fn has_weapons(&self) -> bool
pub fn set_weapons(&mut self, v: StockpileSettings_WeaponsSet)
pub fn mut_weapons(&mut self) -> &mut StockpileSettings_WeaponsSet
pub fn take_weapons(&mut self) -> StockpileSettings_WeaponsSet
pub fn get_armor(&self) -> &StockpileSettings_ArmorSet
pub fn clear_armor(&mut self)
pub fn has_armor(&self) -> bool
pub fn set_armor(&mut self, v: StockpileSettings_ArmorSet)
pub fn mut_armor(&mut self) -> &mut StockpileSettings_ArmorSet
pub fn take_armor(&mut self) -> StockpileSettings_ArmorSet
pub fn get_allow_organic(&self) -> bool
pub fn clear_allow_organic(&mut self)
pub fn has_allow_organic(&self) -> bool
pub fn set_allow_organic(&mut self, v: bool)
pub fn get_allow_inorganic(&self) -> bool
pub fn clear_allow_inorganic(&mut self)
pub fn has_allow_inorganic(&self) -> bool
pub fn set_allow_inorganic(&mut self, v: bool)
pub fn get_corpses(&self) -> bool
pub fn clear_corpses(&mut self)
pub fn has_corpses(&self) -> bool
pub fn set_corpses(&mut self, v: bool)
pub fn get_max_barrels(&self) -> i32
pub fn clear_max_barrels(&mut self)
pub fn has_max_barrels(&self) -> bool
pub fn set_max_barrels(&mut self, v: i32)
pub fn get_max_bins(&self) -> i32
pub fn clear_max_bins(&mut self)
pub fn has_max_bins(&self) -> bool
pub fn set_max_bins(&mut self, v: i32)
pub fn get_max_wheelbarrows(&self) -> i32
pub fn clear_max_wheelbarrows(&mut self)
pub fn has_max_wheelbarrows(&self) -> bool
pub fn set_max_wheelbarrows(&mut self, v: i32)
pub fn get_use_links_only(&self) -> bool
pub fn clear_use_links_only(&mut self)
pub fn has_use_links_only(&self) -> bool
pub fn set_use_links_only(&mut self, v: bool)
Trait Implementations§
source§impl Clear for StockpileSettings
impl Clear for StockpileSettings
source§impl Clone for StockpileSettings
impl Clone for StockpileSettings
source§fn clone(&self) -> StockpileSettings
fn clone(&self) -> StockpileSettings
Returns a copy 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 StockpileSettings
impl Debug for StockpileSettings
source§impl<'a> Default for &'a StockpileSettings
impl<'a> Default for &'a StockpileSettings
source§fn default() -> &'a StockpileSettings
fn default() -> &'a StockpileSettings
Returns the “default value” for a type. Read more
source§impl Default for StockpileSettings
impl Default for StockpileSettings
source§fn default() -> StockpileSettings
fn default() -> StockpileSettings
Returns the “default value” for a type. Read more
source§impl Message for StockpileSettings
impl Message for StockpileSettings
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true for protobuf 3.source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
source§fn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
Write message to the stream. Read more
source§fn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by
compute_size.source§fn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable
Any.source§fn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
source§fn new() -> StockpileSettings
fn new() -> StockpileSettings
Create an empty message object. Read more
source§fn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type. Read more
source§fn default_instance() -> &'static StockpileSettings
fn default_instance() -> &'static StockpileSettings
Return a pointer to default immutable message with static lifetime. Read more
source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from stream.
source§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
Write the message to the stream. Read more
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length
encoded as varint.
source§fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length
encoded as varint.
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
Update this message object with fields read from given stream.
source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from reader.
Parse stops on EOF or when error encountered.
source§fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from byte array.
source§fn check_initialized(&self) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
Check if all required fields of this object are initialized.
source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
Write the message to the writer.
source§fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
Write the message to bytes vec.
source§fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
Write the message to bytes vec.
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length
encoded as varint.
source§fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
source§impl PartialEq<StockpileSettings> for StockpileSettings
impl PartialEq<StockpileSettings> for StockpileSettings
source§fn eq(&self, other: &StockpileSettings) -> bool
fn eq(&self, other: &StockpileSettings) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ProtobufValue for StockpileSettings
impl ProtobufValue for StockpileSettings
source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?