pub struct OID { /* private fields */ }
Implementations§
Source§impl OID
impl OID
pub fn new(kind: ItemKind, group: &str, id: &str) -> EResult<Self>
pub fn new0(kind: ItemKind, id: &str) -> EResult<Self>
pub fn new0_unchecked(kind: ItemKind, id: &str) -> EResult<Self>
pub fn id(&self) -> &str
pub fn full_id(&self) -> &str
pub fn group(&self) -> Option<&str>
pub fn kind(&self) -> ItemKind
pub fn as_str(&self) -> &str
pub fn as_path(&self) -> &str
pub fn is_wildcard(&self) -> bool
pub fn to_wildcard_str(&self, wildcard_suffix: &str) -> String
pub fn serialize_into(&self, target: &mut BTreeMap<Value, Value>)
pub fn from_str_type(tp: ItemKind, s: &str) -> EResult<Self>
pub fn from_path(s: &str) -> EResult<Self>
Trait Implementations§
Source§impl<'r, DB: Database> Decode<'r, DB> for OID
impl<'r, DB: Database> Decode<'r, DB> for OID
Source§fn decode(value: <DB as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError>
fn decode(value: <DB as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'de> Deserialize<'de> for OID
impl<'de> Deserialize<'de> for OID
Source§fn deserialize<D>(deserializer: D) -> Result<OID, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OID, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode<'_, Postgres> for OID
impl Encode<'_, Postgres> for OID
Source§fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl<'q> Encode<'q, Sqlite> for OID
impl<'q> Encode<'q, Sqlite> for OID
Source§fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
Writes the value of
self
into buf
in the expected format for the database.Source§fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn size_hint(&self) -> usize
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl From<OID> for OIDMaskList
impl From<OID> for OIDMaskList
Source§impl Ord for OID
impl Ord for OID
Source§impl PartialOrd for OID
impl PartialOrd for OID
Source§impl PgHasArrayType for OID
impl PgHasArrayType for OID
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
Source§impl Type<Postgres> for OID
impl Type<Postgres> for OID
Source§fn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Eq for OID
Auto Trait Implementations§
impl Freeze for OID
impl RefUnwindSafe for OID
impl Send for OID
impl Sync for OID
impl Unpin for OID
impl UnwindSafe for OID
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more