pub struct RuleSet<'a> { /* private fields */ }Expand description
Corresponds to SpeculationRuleSet
Implementations§
Source§impl<'a> RuleSet<'a>
impl<'a> RuleSet<'a>
pub fn builder( id: RuleSetId<'a>, loaderId: LoaderId<'a>, sourceText: impl Into<Cow<'a, str>>, ) -> RuleSetBuilder<'a>
pub fn id(&self) -> &RuleSetId<'a>
pub fn loaderId(&self) -> &LoaderId<'a>
pub fn sourceText(&self) -> &str
pub fn backendNodeId(&self) -> Option<&BackendNodeId>
pub fn url(&self) -> Option<&str>
pub fn requestId(&self) -> Option<&RequestId<'a>>
pub fn errorType(&self) -> Option<&RuleSetErrorType>
pub fn errorMessage(&self) -> Option<&str>
pub fn tag(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for RuleSet<'a>
impl<'de, 'a> Deserialize<'de> for RuleSet<'a>
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<'a> Freeze for RuleSet<'a>
impl<'a> RefUnwindSafe for RuleSet<'a>
impl<'a> Send for RuleSet<'a>
impl<'a> Sync for RuleSet<'a>
impl<'a> Unpin for RuleSet<'a>
impl<'a> UnsafeUnpin for RuleSet<'a>
impl<'a> UnwindSafe for RuleSet<'a>
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