Enum proto_pdk_api::StringOrVec
source · pub enum StringOrVec {
String(String),
Vec(Vec<String>),
}
Expand description
Either a string, or a list of strings.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for StringOrVec
impl Clone for StringOrVec
source§fn clone(&self) -> StringOrVec
fn clone(&self) -> StringOrVec
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 StringOrVec
impl Debug for StringOrVec
source§impl<'de> Deserialize<'de> for StringOrVec
impl<'de> Deserialize<'de> for StringOrVec
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 PartialEq for StringOrVec
impl PartialEq for StringOrVec
source§fn eq(&self, other: &StringOrVec) -> bool
fn eq(&self, other: &StringOrVec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StringOrVec
impl Serialize for StringOrVec
impl StructuralPartialEq for StringOrVec
Auto Trait Implementations§
impl Freeze for StringOrVec
impl RefUnwindSafe for StringOrVec
impl Send for StringOrVec
impl Sync for StringOrVec
impl Unpin for StringOrVec
impl UnwindSafe for StringOrVec
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