pub struct GymState { /* private fields */ }
Implementations§
Source§impl GymState
impl GymState
pub fn new() -> GymState
pub fn default_instance() -> &'static GymState
pub fn clear_fort_data(&mut self)
pub fn has_fort_data(&self) -> bool
pub fn set_fort_data(&mut self, v: FortData)
pub fn mut_fort_data(&mut self) -> &mut FortData
pub fn take_fort_data(&mut self) -> FortData
pub fn get_fort_data(&self) -> &FortData
pub fn clear_memberships(&mut self)
pub fn set_memberships(&mut self, v: RepeatedField<GymMembership>)
pub fn mut_memberships(&mut self) -> &mut RepeatedField<GymMembership>
pub fn take_memberships(&mut self) -> RepeatedField<GymMembership>
pub fn get_memberships(&self) -> &[GymMembership]
Trait Implementations§
Source§impl Message for GymState
impl Message for GymState
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn type_id(&self) -> TypeId
fn as_any(&self) -> &dyn Any
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn into_any(self: Box<Self>) -> Box<dyn Any>
Source§impl MessageStatic for GymState
impl MessageStatic for GymState
fn new() -> GymState
fn descriptor_static(_: Option<GymState>) -> &'static MessageDescriptor
impl Sync for GymState
Auto Trait Implementations§
impl !Freeze for GymState
impl !RefUnwindSafe for GymState
impl Send for GymState
impl Unpin for GymState
impl UnwindSafe for GymState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)