pub struct AppChannel {
pub public_id: AppChannelId,
pub internal_id: Uuid,
pub channel_type: ChannelType,
pub channel_config: Value,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A single distribution channel attached to an App. Each channel has its own type, config, and lifecycle status.
Fields§
§public_id: AppChannelIdExternal identifier (appchan_<32-hex>). Shown as “id” in API.
internal_id: UuidInternal UUID primary key. Never exposed in API.
channel_type: ChannelTypeChannel type (e.g. slack).
channel_config: ValueChannel-specific configuration (validated per channel type).
enabled: boolWhether this channel is enabled.
created_at: DateTime<Utc>Timestamp when this channel was created.
updated_at: DateTime<Utc>Timestamp when this channel was last updated.
Implementations§
Source§impl AppChannel
impl AppChannel
Sourcepub fn slack_config(&self) -> Option<SlackChannelConfig>
pub fn slack_config(&self) -> Option<SlackChannelConfig>
Parse channel_config as SlackChannelConfig. Returns None if not a Slack channel or if the config is invalid.
Sourcepub fn ag_ui_config(&self) -> Option<AgUiChannelConfig>
pub fn ag_ui_config(&self) -> Option<AgUiChannelConfig>
Parse channel_config as AgUiChannelConfig. Returns None if not an AG-UI channel or if the config is invalid.
Sourcepub fn schedule_config(&self) -> Option<ScheduleChannelConfig>
pub fn schedule_config(&self) -> Option<ScheduleChannelConfig>
Parse channel_config as ScheduleChannelConfig. Returns None if not a schedule channel or if the config is invalid.
Sourcepub fn webhook_config(&self) -> Option<WebhookChannelConfig>
pub fn webhook_config(&self) -> Option<WebhookChannelConfig>
Parse channel_config as WebhookChannelConfig. Returns None if not a webhook channel or if the config is invalid.
Sourcepub fn fcp_config(&self) -> Option<FcpChannelConfig>
pub fn fcp_config(&self) -> Option<FcpChannelConfig>
Parse channel_config as FcpChannelConfig. Returns None if not an FCP channel or if the config is invalid.
Sourcepub fn a2a_config(&self) -> Option<A2aChannelConfig>
pub fn a2a_config(&self) -> Option<A2aChannelConfig>
Parse channel_config as A2aChannelConfig. Returns None if not an A2A channel or if the config is invalid.
Trait Implementations§
Source§impl Clone for AppChannel
impl Clone for AppChannel
Source§fn clone(&self) -> AppChannel
fn clone(&self) -> AppChannel
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 AppChannel
impl Debug for AppChannel
Source§impl<'de> Deserialize<'de> for AppChannel
impl<'de> Deserialize<'de> for AppChannel
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 AppChannel
impl RefUnwindSafe for AppChannel
impl Send for AppChannel
impl Sync for AppChannel
impl Unpin for AppChannel
impl UnsafeUnpin for AppChannel
impl UnwindSafe for AppChannel
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> 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