pub struct IntOrString {
pub int_val: Option<i32>,
pub str_val: Option<String>,
pub type: Option<i64>,
}Expand description
+protobuf=true +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:openapi-gen=true
Fields§
§int_val: Option<i32>§str_val: Option<String>§type: Option<i64>Implementations§
Source§impl IntOrString
impl IntOrString
pub fn new() -> IntOrString
Trait Implementations§
Source§impl Clone for IntOrString
impl Clone for IntOrString
Source§fn clone(&self) -> IntOrString
fn clone(&self) -> IntOrString
Returns a duplicate 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 IntOrString
impl Debug for IntOrString
Source§impl<'de> Deserialize<'de> for IntOrString
impl<'de> Deserialize<'de> for IntOrString
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for IntOrString
Converts Query Parameters representation (style=form, explode=false) to a IntOrString value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for IntOrString
Converts Query Parameters representation (style=form, explode=false) to a IntOrString value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for IntOrString
impl PartialEq for IntOrString
Source§impl Serialize for IntOrString
impl Serialize for IntOrString
Source§impl ToString for IntOrString
Converts the IntOrString value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for IntOrString
Converts the IntOrString value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for IntOrString
impl Validate for IntOrString
Source§impl<'v_a> ValidateArgs<'v_a> for IntOrString
impl<'v_a> ValidateArgs<'v_a> for IntOrString
impl StructuralPartialEq for IntOrString
Auto Trait Implementations§
impl Freeze for IntOrString
impl RefUnwindSafe for IntOrString
impl Send for IntOrString
impl Sync for IntOrString
impl Unpin for IntOrString
impl UnwindSafe for IntOrString
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