pub struct LuaFieldDescriptorProto(pub FieldDescriptorProto);
Tuple Fields§
§0: FieldDescriptorProto
Methods from Deref<Target = FieldDescriptorProto>§
pub fn name(&self) -> &str
pub fn clear_name(&mut self)
pub fn has_name(&self) -> bool
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
pub fn number(&self) -> i32
pub fn clear_number(&mut self)
pub fn has_number(&self) -> bool
pub fn set_number(&mut self, v: i32)
pub fn label(&self) -> Label
pub fn clear_label(&mut self)
pub fn has_label(&self) -> bool
pub fn set_label(&mut self, v: Label)
pub fn type_(&self) -> Type
pub fn clear_type_(&mut self)
pub fn has_type(&self) -> bool
pub fn set_type(&mut self, v: Type)
pub fn type_name(&self) -> &str
pub fn clear_type_name(&mut self)
pub fn has_type_name(&self) -> bool
pub fn set_type_name(&mut self, v: String)
pub fn mut_type_name(&mut self) -> &mut String
pub fn take_type_name(&mut self) -> String
pub fn extendee(&self) -> &str
pub fn clear_extendee(&mut self)
pub fn has_extendee(&self) -> bool
pub fn set_extendee(&mut self, v: String)
pub fn mut_extendee(&mut self) -> &mut String
pub fn take_extendee(&mut self) -> String
pub fn default_value(&self) -> &str
pub fn clear_default_value(&mut self)
pub fn has_default_value(&self) -> bool
pub fn set_default_value(&mut self, v: String)
pub fn mut_default_value(&mut self) -> &mut String
pub fn take_default_value(&mut self) -> String
pub fn oneof_index(&self) -> i32
pub fn clear_oneof_index(&mut self)
pub fn has_oneof_index(&self) -> bool
pub fn set_oneof_index(&mut self, v: i32)
pub fn json_name(&self) -> &str
pub fn clear_json_name(&mut self)
pub fn has_json_name(&self) -> bool
pub fn set_json_name(&mut self, v: String)
pub fn mut_json_name(&mut self) -> &mut String
pub fn take_json_name(&mut self) -> String
pub fn proto3_optional(&self) -> bool
pub fn clear_proto3_optional(&mut self)
pub fn has_proto3_optional(&self) -> bool
pub fn set_proto3_optional(&mut self, v: bool)
Trait Implementations§
Source§impl Clone for LuaFieldDescriptorProto
impl Clone for LuaFieldDescriptorProto
Source§fn clone(&self) -> LuaFieldDescriptorProto
fn clone(&self) -> LuaFieldDescriptorProto
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 LuaFieldDescriptorProto
impl Debug for LuaFieldDescriptorProto
Source§impl Default for LuaFieldDescriptorProto
impl Default for LuaFieldDescriptorProto
Source§fn default() -> LuaFieldDescriptorProto
fn default() -> LuaFieldDescriptorProto
Returns the “default value” for a type. Read more
Source§impl Deref for LuaFieldDescriptorProto
impl Deref for LuaFieldDescriptorProto
Source§impl DerefMut for LuaFieldDescriptorProto
impl DerefMut for LuaFieldDescriptorProto
Source§impl From<FieldDescriptorProto> for LuaFieldDescriptorProto
impl From<FieldDescriptorProto> for LuaFieldDescriptorProto
Source§fn from(value: FieldDescriptorProto) -> Self
fn from(value: FieldDescriptorProto) -> Self
Converts to this type from the input type.
Source§impl From<LuaFieldDescriptorProto> for FieldDescriptorProto
impl From<LuaFieldDescriptorProto> for FieldDescriptorProto
Source§fn from(value: LuaFieldDescriptorProto) -> Self
fn from(value: LuaFieldDescriptorProto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaFieldDescriptorProto
impl PartialEq for LuaFieldDescriptorProto
Source§impl UserData for LuaFieldDescriptorProto
impl UserData for LuaFieldDescriptorProto
Source§fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
Adds custom fields specific to this userdata.
Source§fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
impl StructuralPartialEq for LuaFieldDescriptorProto
Auto Trait Implementations§
impl !Freeze for LuaFieldDescriptorProto
impl RefUnwindSafe for LuaFieldDescriptorProto
impl Send for LuaFieldDescriptorProto
impl Sync for LuaFieldDescriptorProto
impl Unpin for LuaFieldDescriptorProto
impl UnwindSafe for LuaFieldDescriptorProto
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.