#[repr(C)]pub struct lysp_restr {
pub arg: lysp_qname,
pub emsg: *const c_char,
pub eapptag: *const c_char,
pub dsc: *const c_char,
pub ref_: *const c_char,
pub exts: *mut lysp_ext_instance,
}Expand description
@brief Covers restrictions: range, length, pattern, must
Fields§
§arg: lysp_qname< The restriction expression/value (mandatory); in case of pattern restriction, the first byte has a special meaning: 0x06 (ACK) for regular match and 0x15 (NACK) for invert-match
emsg: *const c_char< error-message
eapptag: *const c_char< error-app-tag value
dsc: *const c_char< description
ref_: *const c_char< reference
exts: *mut lysp_ext_instance< list of the extension instances ([sized array](@ref sizedarrays))
Trait Implementations§
Source§impl Clone for lysp_restr
impl Clone for lysp_restr
Source§fn clone(&self) -> lysp_restr
fn clone(&self) -> lysp_restr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for lysp_restr
Source§impl Debug for lysp_restr
impl Debug for lysp_restr
Auto Trait Implementations§
impl !Send for lysp_restr
impl !Sync for lysp_restr
impl Freeze for lysp_restr
impl RefUnwindSafe for lysp_restr
impl Unpin for lysp_restr
impl UnsafeUnpin for lysp_restr
impl UnwindSafe for lysp_restr
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