pub struct PaymentAccount {
pub id: PaymentAccountId,
pub organization_id: String,
pub owner_type: PaymentOwnerType,
pub owner_id: String,
pub rail: PaymentRail,
pub label: String,
pub public_address: Option<String>,
pub status: PaymentStatus,
pub metadata: Value,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A payment account — the org-scoped source of funds for paid agent calls. Each account binds an owning principal (user, agent identity, or org) to one settlement rail and tracks its provisioning lifecycle.
Fields§
§id: PaymentAccountIdPrefixed public identifier. See ID Schema.
organization_id: StringOwning organization’s prefixed public identifier.
owner_type: PaymentOwnerTypePrincipal class that owns this account (user, agent identity, or organization).
owner_id: StringPrefixed identifier of the owning principal (e.g. user_…, agent_…, org_…).
rail: PaymentRailSettlement rail this account operates on.
label: StringHuman-readable label for this account. Safe to render in user-facing messages.
public_address: Option<String>Public address on the rail (chain address, account number, etc.). Optional; None until provisioning completes.
status: PaymentStatusCurrent lifecycle status of this account.
metadata: ValueFree-form metadata attached to this account (caller-defined; opaque to the platform).
created_at: DateTime<Utc>Timestamp when this account was created (RFC 3339).
updated_at: DateTime<Utc>Timestamp when this account was last updated (RFC 3339).
Trait Implementations§
Source§impl Clone for PaymentAccount
impl Clone for PaymentAccount
Source§fn clone(&self) -> PaymentAccount
fn clone(&self) -> PaymentAccount
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PaymentAccount
impl Debug for PaymentAccount
Source§impl<'de> Deserialize<'de> for PaymentAccount
impl<'de> Deserialize<'de> for PaymentAccount
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>,
Auto Trait Implementations§
impl Freeze for PaymentAccount
impl RefUnwindSafe for PaymentAccount
impl Send for PaymentAccount
impl Sync for PaymentAccount
impl Unpin for PaymentAccount
impl UnsafeUnpin for PaymentAccount
impl UnwindSafe for PaymentAccount
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request