pub struct Rule {
pub oid: u32,
pub name: String,
pub relation: u32,
pub event: u8,
pub instead: bool,
pub enabled: u8,
pub qualified: bool,
pub text: String,
pub path: Vec<u32>,
}Expand description
Fields§
§oid: u32The OID.
name: StringThe name.
relation: u32The OID of the relation of the rule.
event: u8ev_type: the event, from 1 for SELECT to 4 for DELETE.
instead: boolis_instead: true for DO INSTEAD.
enabled: u8ev_enabled: O when the rule fires in the origin mode.
qualified: boolTrue when the rule has a condition of WHERE.
text: StringThe text of the statement that made the rule or that last replaced it. Only the analyzer reads it back.
path: Vec<u32>The schemas of search_path when that statement ran, in order.
Trait Implementations§
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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