Struct svc_agent::AccountId

source ·
pub struct AccountId { /* private fields */ }

Implementations§

source§

impl AccountId

source

pub fn new(label: &str, audience: &str) -> AccountId

source

pub fn label(&self) -> &str

source

pub fn audience(&self) -> &str

Trait Implementations§

source§

impl<'expr> AsExpression<Account_id> for &'expr AccountId

§

type Expression = Bound<Account_id, &'expr AccountId>

The expression being returned
source§

fn as_expression( self ) -> <&'expr AccountId as AsExpression<Account_id>>::Expression

Perform the conversion
source§

impl AsExpression<Account_id> for AccountId

§

type Expression = Bound<Account_id, AccountId>

The expression being returned
source§

fn as_expression(self) -> <AccountId as AsExpression<Account_id>>::Expression

Perform the conversion
source§

impl<'expr> AsExpression<Nullable<Account_id>> for &'expr AccountId

§

type Expression = Bound<Nullable<Account_id>, &'expr AccountId>

The expression being returned
source§

fn as_expression( self ) -> <&'expr AccountId as AsExpression<Nullable<Account_id>>>::Expression

Perform the conversion
source§

impl AsExpression<Nullable<Account_id>> for AccountId

§

type Expression = Bound<Nullable<Account_id>, AccountId>

The expression being returned
source§

fn as_expression( self ) -> <AccountId as AsExpression<Nullable<Account_id>>>::Expression

Perform the conversion
source§

impl Authenticable for AccountId

source§

impl Clone for AccountId

source§

fn clone(&self) -> AccountId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccountId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccountId

source§

fn deserialize<D>( deserializer: D ) -> Result<AccountId, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for AccountId

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromSql<Account_id, Pg> for AccountId

source§

fn from_sql( bytes: Option<&[u8]> ) -> Result<AccountId, Box<dyn Error + Sync + Send + 'static, Global>>

See the trait documentation.
source§

impl<__ST, __DB> FromSqlRow<__ST, __DB> for AccountIdwhere __DB: Backend, AccountId: FromSql<__ST, __DB>,

source§

fn build_from_row<R>( row: &mut R ) -> Result<AccountId, Box<dyn Error + Sync + Send + 'static, Global>>where R: Row<__DB>,

See the trait documentation.
§

const FIELDS_NEEDED: usize = 1usize

The number of fields that this type will consume. Must be equal to the number of times you would call row.take() in build_from_row
source§

impl FromStr for AccountId

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(val: &str) -> Result<AccountId, <AccountId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for AccountId

source§

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<AccountId> for AccountId

source§

fn eq(&self, other: &AccountId) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<__ST, __DB> Queryable<__ST, __DB> for AccountIdwhere __DB: Backend, AccountId: FromSql<__ST, __DB>,

§

type Row = AccountId

The Rust type you’d like to map from. Read more
source§

fn build(row: <AccountId as Queryable<__ST, __DB>>::Row) -> AccountId

Construct an instance of this type
source§

impl Serialize for AccountId

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToSql<Account_id, Pg> for AccountId

source§

fn to_sql<W>( &self, out: &mut Output<'_, W, Pg> ) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static, Global>>where W: Write,

See the trait documentation.
source§

impl<__DB> ToSql<Nullable<Account_id>, __DB> for AccountIdwhere __DB: Backend, AccountId: ToSql<Account_id, __DB>,

source§

fn to_sql<W>( &self, out: &mut Output<'_, W, __DB> ) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static, Global>>where W: Write,

See the trait documentation.
source§

impl Eq for AccountId

source§

impl StructuralEq for AccountId

source§

impl StructuralPartialEq for AccountId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoSql for T

§

fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,

Convert self to an expression for Diesel’s query builder. Read more
§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,

Convert &self to an expression for Diesel’s query builder. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,