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> Decode<'r, Postgres> for OID
impl<'r> Decode<'r, Postgres> for OID
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Sqlite> for OID
impl<'r> Decode<'r, Sqlite> for OID
Source§fn decode(value: SqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SqliteValueRef<'r>) -> 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,
) -> Result<IsNull, Box<dyn Error + Send + Sync + 'static>>
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Send + Sync + 'static>>
fn size_hint(&self) -> usize
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
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>>,
) -> Result<IsNull, Box<dyn Error + Send + Sync + 'static>>
fn encode( self, args: &mut Vec<SqliteArgumentValue<'q>>, ) -> Result<IsNull, Box<dyn Error + Send + Sync + 'static>>
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>>,
) -> Result<IsNull, Box<dyn Error + Send + Sync + 'static>>
fn encode_by_ref( &self, args: &mut Vec<SqliteArgumentValue<'q>>, ) -> Result<IsNull, Box<dyn Error + Send + Sync + 'static>>
fn size_hint(&self) -> usize
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
impl Eq for OID
Source§impl From<OID> for OIDMaskList
impl From<OID> for OIDMaskList
Source§impl Ord for OID
impl Ord for OID
1.21.0 (const: unstable) · 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 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
Auto Trait Implementations§
impl Freeze for OID
impl RefUnwindSafe for OID
impl Send for OID
impl Sync for OID
impl Unpin for OID
impl UnsafeUnpin 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
impl<T> Client 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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.