pub struct OptionObject {
pub text: TextObject,
pub value: String,
pub description: Option<TextObject>,
pub url: Option<String>,
}Expand description
Fields§
§text: TextObject§value: String§description: Option<TextObject>§url: Option<String>Implementations§
Source§impl OptionObject
impl OptionObject
pub fn new(text: impl Into<TextObject>, value: impl Into<String>) -> Self
pub fn description(self, description: impl Into<TextObject>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for OptionObject
impl Clone for OptionObject
Source§impl Debug for OptionObject
impl Debug for OptionObject
Source§impl<'de> Deserialize<'de> for OptionObject
impl<'de> Deserialize<'de> for OptionObject
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 OptionObject
impl PartialEq for OptionObject
Source§impl Serialize for OptionObject
impl Serialize for OptionObject
impl StructuralPartialEq for OptionObject
Auto Trait Implementations§
impl Freeze for OptionObject
impl RefUnwindSafe for OptionObject
impl Send for OptionObject
impl Sync for OptionObject
impl Unpin for OptionObject
impl UnsafeUnpin for OptionObject
impl UnwindSafe for OptionObject
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