Struct pgx_sql_entity_graph::ControlFile 
source · pub struct ControlFile {
    pub comment: String,
    pub default_version: String,
    pub module_pathname: Option<String>,
    pub relocatable: bool,
    pub superuser: bool,
    pub schema: Option<String>,
}Expand description
The parsed contents of a .control file.
use pgx_sql_entity_graph::ControlFile;
use std::convert::TryFrom;
let context = include_str!("../../pgx-examples/custom_types/custom_types.control");
let _control_file = ControlFile::try_from(context)?;Fields§
§comment: String§default_version: String§module_pathname: Option<String>§relocatable: bool§superuser: bool§schema: Option<String>Implementations§
Trait Implementations§
source§impl Clone for ControlFile
 
impl Clone for ControlFile
source§fn clone(&self) -> ControlFile
 
fn clone(&self) -> ControlFile
Returns a copy 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 ControlFile
 
impl Debug for ControlFile
source§impl From<ControlFile> for SqlGraphEntity
 
impl From<ControlFile> for SqlGraphEntity
source§fn from(val: ControlFile) -> Self
 
fn from(val: ControlFile) -> Self
Converts to this type from the input type.
source§impl Hash for ControlFile
 
impl Hash for ControlFile
source§impl Ord for ControlFile
 
impl Ord for ControlFile
source§fn cmp(&self, other: &ControlFile) -> Ordering
 
fn cmp(&self, other: &ControlFile) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ControlFile> for ControlFile
 
impl PartialEq<ControlFile> for ControlFile
source§fn eq(&self, other: &ControlFile) -> bool
 
fn eq(&self, other: &ControlFile) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ControlFile> for ControlFile
 
impl PartialOrd<ControlFile> for ControlFile
source§fn partial_cmp(&self, other: &ControlFile) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ControlFile) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl SqlGraphIdentifier for ControlFile
 
impl SqlGraphIdentifier for ControlFile
source§impl ToSql for ControlFile
 
impl ToSql for ControlFile
source§impl TryFrom<&str> for ControlFile
 
impl TryFrom<&str> for ControlFile
impl Eq for ControlFile
impl StructuralEq for ControlFile
impl StructuralPartialEq for ControlFile
Auto Trait Implementations§
impl RefUnwindSafe for ControlFile
impl Send for ControlFile
impl Sync for ControlFile
impl Unpin for ControlFile
impl UnwindSafe for ControlFile
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.