Struct samling::I18nString
source · Fields§
§en: String§sv: StringImplementations§
Trait Implementations§
source§impl Clone for I18nString
impl Clone for I18nString
source§fn clone(&self) -> I18nString
fn clone(&self) -> I18nString
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 I18nString
impl Debug for I18nString
source§impl Default for I18nString
impl Default for I18nString
source§fn default() -> I18nString
fn default() -> I18nString
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for I18nString
impl<'de> Deserialize<'de> for I18nString
source§fn 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
source§impl From<String> for I18nString
impl From<String> for I18nString
source§impl JsonSchema for I18nString
impl JsonSchema for I18nString
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Ord for I18nString
impl Ord for I18nString
source§fn cmp(&self, other: &I18nString) -> Ordering
fn cmp(&self, other: &I18nString) -> 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<I18nString> for I18nString
impl PartialEq<I18nString> for I18nString
source§fn eq(&self, other: &I18nString) -> bool
fn eq(&self, other: &I18nString) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<I18nString> for I18nString
impl PartialOrd<I18nString> for I18nString
source§fn partial_cmp(&self, other: &I18nString) -> Option<Ordering>
fn partial_cmp(&self, other: &I18nString) -> 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 Serialize for I18nString
impl Serialize for I18nString
source§impl ToSql for I18nString
impl ToSql for I18nString
source§fn 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 moresource§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type.source§fn 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
source§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
impl Eq for I18nString
impl JsonSql for I18nString
impl StructuralEq for I18nString
impl StructuralPartialEq for I18nString
Auto Trait Implementations§
impl RefUnwindSafe for I18nString
impl Send for I18nString
impl Sync for I18nString
impl Unpin for I18nString
impl UnwindSafe for I18nString
Blanket Implementations§
source§impl<T> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
source§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self as a ToSql trait object.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.