pub struct GeneralAttribute {
pub text: String,
pub code: Option<Option<String>>,
pub url: Option<Option<String>>,
}Fields§
§text: String§code: Option<Option<String>>§url: Option<Option<String>>Implementations§
Source§impl GeneralAttribute
impl GeneralAttribute
pub fn new(text: String) -> GeneralAttribute
Trait Implementations§
Source§impl Clone for GeneralAttribute
impl Clone for GeneralAttribute
Source§fn clone(&self) -> GeneralAttribute
fn clone(&self) -> GeneralAttribute
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 GeneralAttribute
impl Debug for GeneralAttribute
Source§impl Default for GeneralAttribute
impl Default for GeneralAttribute
Source§fn default() -> GeneralAttribute
fn default() -> GeneralAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeneralAttribute
impl<'de> Deserialize<'de> for GeneralAttribute
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 GeneralAttribute
impl PartialEq for GeneralAttribute
Source§impl Serialize for GeneralAttribute
impl Serialize for GeneralAttribute
impl StructuralPartialEq for GeneralAttribute
Auto Trait Implementations§
impl Freeze for GeneralAttribute
impl RefUnwindSafe for GeneralAttribute
impl Send for GeneralAttribute
impl Sync for GeneralAttribute
impl Unpin for GeneralAttribute
impl UnwindSafe for GeneralAttribute
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