pub struct OriginCertificateRequest<'a> {
pub account_id: &'a str,
pub zone_id: &'a str,
pub api_token: &'a str,
pub mint_signing_token: bool,
}Expand description
Attaching a domain to a project on the owner’s own Cloudflare account needs
an origin certificate, and only a token with SSL and Certificates -> Edit
can sign one. fn0 does not hold such a token by design, so the CLI signs the
certificate here and uploads it. account_id/zone_id/api_token are the
same ones used for cloudflare connect.
Fields§
§account_id: &'a str§zone_id: &'a str§api_token: &'a str§mint_signing_token: booltrue when the token can only create tokens, so a signing token has to
be minted from it; false when it can sign directly.
Auto Trait Implementations§
impl<'a> Freeze for OriginCertificateRequest<'a>
impl<'a> RefUnwindSafe for OriginCertificateRequest<'a>
impl<'a> Send for OriginCertificateRequest<'a>
impl<'a> Sync for OriginCertificateRequest<'a>
impl<'a> Unpin for OriginCertificateRequest<'a>
impl<'a> UnsafeUnpin for OriginCertificateRequest<'a>
impl<'a> UnwindSafe for OriginCertificateRequest<'a>
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