pub struct UserProfile {
pub dhan_client_id: String,
pub token_validity: String,
pub active_segment: Option<String>,
pub ddpi: Option<String>,
pub mtf: Option<String>,
pub data_plan: Option<String>,
pub data_validity: Option<String>,
}Expand description
Response from GET /v2/profile.
Used to validate access token and check account setup.
Fields§
§dhan_client_id: StringUser-specific identification generated by Dhan.
token_validity: StringValidity date and time for the access token.
active_segment: Option<String>All active segments in the user’s account (comma-separated).
ddpi: Option<String>DDPI status (Active / Deactive).
mtf: Option<String>MTF consent status (Active / Deactive).
data_plan: Option<String>Data API subscription status (Active / Deactive).
data_validity: Option<String>Validity date and time for the Data API subscription.
Trait Implementations§
Source§impl Clone for UserProfile
impl Clone for UserProfile
Source§fn clone(&self) -> UserProfile
fn clone(&self) -> UserProfile
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 UserProfile
impl Debug for UserProfile
Source§impl<'de> Deserialize<'de> for UserProfile
impl<'de> Deserialize<'de> for UserProfile
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 UserProfile
impl RefUnwindSafe for UserProfile
impl Send for UserProfile
impl Sync for UserProfile
impl Unpin for UserProfile
impl UnsafeUnpin for UserProfile
impl UnwindSafe for UserProfile
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