pub struct AuthProfile {
pub id: String,
pub profile_type: ProfileType,
pub target: String,
pub account_id: Option<String>,
pub created_at: DateTime<Utc>,
pub last_used: Option<DateTime<Utc>>,
pub active: bool,
pub metadata: HashMap<String, Value>,
}Expand description
Authentication profile for a channel or provider.
Fields§
§id: StringProfile identifier.
profile_type: ProfileTypeProfile type.
target: StringChannel or provider this profile is for.
account_id: Option<String>Account identifier (e.g., bot username, phone number).
created_at: DateTime<Utc>When the profile was created.
last_used: Option<DateTime<Utc>>When the profile was last used.
active: boolWhether this profile is active.
metadata: HashMap<String, Value>Additional metadata.
Implementations§
Trait Implementations§
Source§impl Clone for AuthProfile
impl Clone for AuthProfile
Source§fn clone(&self) -> AuthProfile
fn clone(&self) -> AuthProfile
Returns a duplicate 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 AuthProfile
impl Debug for AuthProfile
Source§impl<'de> Deserialize<'de> for AuthProfile
impl<'de> Deserialize<'de> for AuthProfile
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
Auto Trait Implementations§
impl Freeze for AuthProfile
impl RefUnwindSafe for AuthProfile
impl Send for AuthProfile
impl Sync for AuthProfile
impl Unpin for AuthProfile
impl UnwindSafe for AuthProfile
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