pub struct ProxyRule {Show 15 fields
pub id: String,
pub created_at: String,
pub updated_at: String,
pub domain: String,
pub type: String,
pub trigger: String,
pub redirect_url: String,
pub redirect_status_code: i64,
pub deployment_id: String,
pub deployment_resource_type: Option<ProxyRuleDeploymentResourceType>,
pub deployment_resource_id: String,
pub deployment_vcs_provider_branch: String,
pub status: ProxyRuleStatus,
pub logs: String,
pub renew_at: String,
}Expand description
Rule
Fields§
§id: StringRule ID.
created_at: StringRule creation date in ISO 8601 format.
updated_at: StringRule update date in ISO 8601 format.
domain: StringDomain name.
type: StringAction definition for the rule. Possible values are “api”, “deployment”, or “redirect”
trigger: StringDefines how the rule was created. Possible values are “manual” or “deployment”
redirect_url: StringURL to redirect to. Used if type is “redirect”
redirect_status_code: i64Status code to apply during redirect. Used if type is “redirect”
deployment_id: StringID of deployment. Used if type is “deployment”
deployment_resource_type: Option<ProxyRuleDeploymentResourceType>Type of deployment. Possible values are “function”, “site”. Used if rule’s type is “deployment”.
deployment_resource_id: StringID of deployment’s resource (site or function ID). Used if type is “deployment”
deployment_vcs_provider_branch: StringName of Git branch that updates rule. Used if type is “deployment”
status: ProxyRuleStatusDomain verification status. Possible values are “unverified”, “verifying”, “verified”
logs: StringLogs from rule verification or certificate generation. Certificate generation logs are prioritized if both are available.
renew_at: StringCertificate auto-renewal date in ISO 8601 format.
Implementations§
Source§impl ProxyRule
impl ProxyRule
Sourcepub fn created_at(&self) -> &String
pub fn created_at(&self) -> &String
Get created_at
Sourcepub fn updated_at(&self) -> &String
pub fn updated_at(&self) -> &String
Get updated_at
Sourcepub fn redirect_url(&self) -> &String
pub fn redirect_url(&self) -> &String
Get redirect_url
Sourcepub fn redirect_status_code(&self) -> &i64
pub fn redirect_status_code(&self) -> &i64
Get redirect_status_code
Sourcepub fn deployment_id(&self) -> &String
pub fn deployment_id(&self) -> &String
Get deployment_id
Sourcepub fn set_deployment_resource_type(
self,
deployment_resource_type: ProxyRuleDeploymentResourceType,
) -> Self
pub fn set_deployment_resource_type( self, deployment_resource_type: ProxyRuleDeploymentResourceType, ) -> Self
Set deployment_resource_type
Sourcepub fn deployment_resource_type(
&self,
) -> Option<&ProxyRuleDeploymentResourceType>
pub fn deployment_resource_type( &self, ) -> Option<&ProxyRuleDeploymentResourceType>
Get deployment_resource_type
Sourcepub fn deployment_resource_id(&self) -> &String
pub fn deployment_resource_id(&self) -> &String
Get deployment_resource_id
Sourcepub fn deployment_vcs_provider_branch(&self) -> &String
pub fn deployment_vcs_provider_branch(&self) -> &String
Get deployment_vcs_provider_branch
Sourcepub fn status(&self) -> &ProxyRuleStatus
pub fn status(&self) -> &ProxyRuleStatus
Get status