pub struct Rule<'a> {
pub name: &'a str,
pub value: &'a str,
}Expand description
One name/value entry returned by an A2S_RULES response.
The strings borrow from the response packet. Use Rule::to_owned to keep
the entry after releasing that packet.
Fields§
§name: &'a strRule name.
value: &'a strRule value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Rule<'a>
impl<'a> Freeze for Rule<'a>
impl<'a> Move for Rule<'a>
impl<'a> RefUnwindSafe for Rule<'a>
impl<'a> Send for Rule<'a>
impl<'a> Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> UnsafeUnpin for Rule<'a>
impl<'a> UnwindSafe for Rule<'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