pub struct CloudSetup<'a> {
pub project_id: &'a str,
pub account_id: &'a str,
pub zone_id: &'a str,
pub api_token: &'a str,
pub mint_from_setup_token: bool,
pub domain: &'a str,
}Expand description
What the user chose and typed, carried between the steps of one setup.
Fields§
§project_id: &'a str§account_id: &'a str§zone_id: &'a str§api_token: &'a strDiscarded when the command exits. fn0 never receives it.
mint_from_setup_token: booltrue when the token carries only API Tokens -> Edit, so every
privileged call has to be made through a token minted from it.
domain: &'a strImplementations§
Source§impl CloudSetup<'_>
impl CloudSetup<'_>
Sourcepub fn app_origin(&self) -> String
pub fn app_origin(&self) -> String
The one origin the project’s own pages are served from, and so the only origin allowed to read its buckets from a browser.
Auto Trait Implementations§
impl<'a> Freeze for CloudSetup<'a>
impl<'a> RefUnwindSafe for CloudSetup<'a>
impl<'a> Send for CloudSetup<'a>
impl<'a> Sync for CloudSetup<'a>
impl<'a> Unpin for CloudSetup<'a>
impl<'a> UnsafeUnpin for CloudSetup<'a>
impl<'a> UnwindSafe for CloudSetup<'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