pub struct CdnUpdateEndpointsBody {
pub certificate_id: Option<Uuid>,
pub custom_domain: Option<String>,
pub ttl: CdnUpdateEndpointsBodyTtl,
}Expand description
CdnUpdateEndpointsBody
JSON schema
{
"type": "object",
"properties": {
"certificate_id": {
"description": "The ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided.",
"examples": [
"892071a0-bb95-49bc-8021-3afd67a210bf"
],
"type": "string",
"format": "uuid"
},
"custom_domain": {
"description": "The fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint.",
"examples": [
"static.example.com"
],
"type": "string",
"format": "hostname"
},
"ttl": {
"description": "The amount of time the content is cached by the CDN's edge servers in seconds. TTL must be one of 60, 600, 3600, 86400, or 604800. Defaults to 3600 (one hour) when excluded.",
"default": 3600,
"examples": [
3600
],
"type": "integer",
"enum": [
60,
600,
3600,
86400,
604800
]
}
}
}Fields§
§certificate_id: Option<Uuid>The ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided.
custom_domain: Option<String>The fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint.
ttl: CdnUpdateEndpointsBodyTtlThe amount of time the content is cached by the CDN’s edge servers in seconds. TTL must be one of 60, 600, 3600, 86400, or 604800. Defaults to 3600 (one hour) when excluded.
Trait Implementations§
Source§impl Clone for CdnUpdateEndpointsBody
impl Clone for CdnUpdateEndpointsBody
Source§fn clone(&self) -> CdnUpdateEndpointsBody
fn clone(&self) -> CdnUpdateEndpointsBody
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 CdnUpdateEndpointsBody
impl Debug for CdnUpdateEndpointsBody
Source§impl Default for CdnUpdateEndpointsBody
impl Default for CdnUpdateEndpointsBody
Source§impl<'de> Deserialize<'de> for CdnUpdateEndpointsBody
impl<'de> Deserialize<'de> for CdnUpdateEndpointsBody
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
Source§impl From<&CdnUpdateEndpointsBody> for CdnUpdateEndpointsBody
impl From<&CdnUpdateEndpointsBody> for CdnUpdateEndpointsBody
Source§fn from(value: &CdnUpdateEndpointsBody) -> Self
fn from(value: &CdnUpdateEndpointsBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CdnUpdateEndpointsBody
impl RefUnwindSafe for CdnUpdateEndpointsBody
impl Send for CdnUpdateEndpointsBody
impl Sync for CdnUpdateEndpointsBody
impl Unpin for CdnUpdateEndpointsBody
impl UnsafeUnpin for CdnUpdateEndpointsBody
impl UnwindSafe for CdnUpdateEndpointsBody
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