pub struct ServiceDetail {Show 22 fields
pub id: String,
pub object: String,
pub provider_id: String,
pub provider_name: String,
pub service_id: String,
pub categories: Vec<Category>,
pub kind: Kind,
pub scope: Scope,
pub availability: Availability,
pub group: Option<String>,
pub description: Option<String>,
pub llm_context: Option<String>,
pub created: Option<Value>,
pub development: bool,
pub livemode: bool,
pub allowed_updates: Vec<AllowedUpdate>,
pub updateable_to: Vec<String>,
pub constraints: Vec<Constraint>,
pub pricing: Pricing,
pub configuration_schema: Option<ConfigSchema>,
pub provider_configuration_schema: Option<ConfigSchema>,
pub extra: BTreeMap<String, Value>,
}Fields§
§id: String§object: String§provider_id: String§provider_name: String§service_id: String§categories: Vec<Category>§kind: Kind§scope: Scope§availability: Availability§group: Option<String>§description: Option<String>§llm_context: Option<String>§created: Option<Value>§development: bool§livemode: bool§allowed_updates: Vec<AllowedUpdate>§updateable_to: Vec<String>§constraints: Vec<Constraint>§pricing: Pricing§configuration_schema: Option<ConfigSchema>§provider_configuration_schema: Option<ConfigSchema>§extra: BTreeMap<String, Value>Implementations§
Source§impl ServiceDetail
impl ServiceDetail
Sourcepub fn validate_config(&self, config: &Value) -> Result<(), Vec<String>>
pub fn validate_config(&self, config: &Value) -> Result<(), Vec<String>>
Validate a serialized --config object against this service: required
fields present, every key is a known schema property or pricing-tier
selector, each value matches its property/selector constraints.
Sourcepub fn requires_confirmation(&self, config: &Value) -> bool
pub fn requires_confirmation(&self, config: &Value) -> bool
Whether provisioning this service with the given --config requires paid
confirmation, derived from the selected pricing tier (or the service’s
pricing kind when there are no tier selectors).
Sourcepub fn requires_confirmation_with_paid(
&self,
config: &Value,
confirm_paid: bool,
) -> bool
pub fn requires_confirmation_with_paid( &self, config: &Value, confirm_paid: bool, ) -> bool
Like [requires_confirmation], but honors an explicit paid-consent flag
for component-pricing tier selection.
Trait Implementations§
Source§impl Clone for ServiceDetail
impl Clone for ServiceDetail
Source§fn clone(&self) -> ServiceDetail
fn clone(&self) -> ServiceDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceDetail
impl Debug for ServiceDetail
Source§impl<'de> Deserialize<'de> for ServiceDetail
impl<'de> Deserialize<'de> for ServiceDetail
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 ServiceDetail
impl RefUnwindSafe for ServiceDetail
impl Send for ServiceDetail
impl Sync for ServiceDetail
impl Unpin for ServiceDetail
impl UnsafeUnpin for ServiceDetail
impl UnwindSafe for ServiceDetail
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