Enum primitives::analytics::OperatingSystem
source · pub enum OperatingSystem {
Linux,
Whitelisted(String),
Other,
}
Variants
Linux
Whitelisted(String)
Other
Implementations
sourceimpl OperatingSystem
impl OperatingSystem
pub const LINUX_DISTROS: [&'static str; 17] = _
pub const WHITELISTED: [&'static str; 18] = _
pub fn map_os(os_name: &str) -> OperatingSystem
Trait Implementations
sourceimpl Clone for OperatingSystem
impl Clone for OperatingSystem
sourcefn clone(&self) -> OperatingSystem
fn clone(&self) -> OperatingSystem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OperatingSystem
impl Debug for OperatingSystem
sourceimpl Default for OperatingSystem
impl Default for OperatingSystem
sourceimpl<'de> Deserialize<'de> for OperatingSystem
impl<'de> Deserialize<'de> for OperatingSystem
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for OperatingSystem
impl Display for OperatingSystem
sourceimpl From<OperatingSystem> for String
impl From<OperatingSystem> for String
sourcefn from(os: OperatingSystem) -> String
fn from(os: OperatingSystem) -> String
Converts to this type from the input type.
sourceimpl From<String> for OperatingSystem
impl From<String> for OperatingSystem
sourceimpl<'a> FromSql<'a> for OperatingSystem
impl<'a> FromSql<'a> for OperatingSystem
sourcefn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<Self, Box<dyn Error + Sync + Send>>
fn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<Self, Box<dyn Error + Sync + Send>>
Creates a new value of this type from a buffer of data of the specified
Postgres
Type
in its binary format. Read moresourcefn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be created from the specified
Postgres
Type
. Read moresourceimpl Hash for OperatingSystem
impl Hash for OperatingSystem
sourceimpl PartialEq<OperatingSystem> for OperatingSystem
impl PartialEq<OperatingSystem> for OperatingSystem
sourcefn eq(&self, other: &OperatingSystem) -> bool
fn eq(&self, other: &OperatingSystem) -> bool
sourceimpl Serialize for OperatingSystem
impl Serialize for OperatingSystem
sourceimpl ToSql for OperatingSystem
impl ToSql for OperatingSystem
sourcefn to_sql(
&self,
ty: &Type,
w: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql(
&self,
ty: &Type,
w: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Converts the value of
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read moresourcefn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type
. Read moresourcefn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more
sourcefn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
impl Eq for OperatingSystem
impl StructuralEq for OperatingSystem
impl StructuralPartialEq for OperatingSystem
Auto Trait Implementations
impl RefUnwindSafe for OperatingSystem
impl Send for OperatingSystem
impl Sync for OperatingSystem
impl Unpin for OperatingSystem
impl UnwindSafe for OperatingSystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
sourcefn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self
as a ToSql
trait object.