pub struct ProtocolValue {
pub text: String,
pub range: Option<SourceRange>,
pub specificity: Option<Specificity>,
}Expand description
Data for a simple selector (these are delimited by commas in a selector list).
Fields§
§text: StringValue text.
range: Option<SourceRange>Value range in the underlying resource (if available).
specificity: Option<Specificity>Specificity of the selector.
Trait Implementations§
Source§impl Clone for ProtocolValue
impl Clone for ProtocolValue
Source§fn clone(&self) -> ProtocolValue
fn clone(&self) -> ProtocolValue
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 ProtocolValue
impl Debug for ProtocolValue
Source§impl Default for ProtocolValue
impl Default for ProtocolValue
Source§fn default() -> ProtocolValue
fn default() -> ProtocolValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtocolValue
impl<'de> Deserialize<'de> for ProtocolValue
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
Auto Trait Implementations§
impl Freeze for ProtocolValue
impl RefUnwindSafe for ProtocolValue
impl Send for ProtocolValue
impl Sync for ProtocolValue
impl Unpin for ProtocolValue
impl UnsafeUnpin for ProtocolValue
impl UnwindSafe for ProtocolValue
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