Skip to main content

Input

Struct Input 

Source
pub struct Input {
Show 20 fields pub vms: HashMap<String, Vm>, pub vms_images: HashMap<String, Image>, pub catalog: HashMap<String, CatalogEntry>, pub need_vm_types_fetch: bool, pub use_dedicated_instance: bool, pub vm_types: HashMap<String, VmType>, pub account: Option<Account>, pub region: Option<String>, pub need_default_resource: bool, pub nat_services: HashMap<String, NatService>, pub volumes: HashMap<String, Volume>, pub snapshots: HashMap<String, Snapshot>, pub fetch_date: Option<DateTime<Utc>>, pub public_ips: HashMap<String, PublicIp>, pub filters: Option<Filter>, pub flexible_gpus: HashMap<String, FlexibleGpu>, pub load_balancers: Vec<String>, pub vpns: Vec<String>, pub buckets: HashMap<String, OosBucket>, pub consumption: HashMap<String, ConsumptionEntry>, /* private fields */
}

Fields§

§vms: HashMap<String, Vm>§vms_images: HashMap<String, Image>§catalog: HashMap<String, CatalogEntry>§need_vm_types_fetch: bool§use_dedicated_instance: bool§vm_types: HashMap<String, VmType>§account: Option<Account>§region: Option<String>§need_default_resource: bool§nat_services: HashMap<String, NatService>§volumes: HashMap<String, Volume>§snapshots: HashMap<String, Snapshot>§fetch_date: Option<DateTime<Utc>>§public_ips: HashMap<String, PublicIp>§filters: Option<Filter>§flexible_gpus: HashMap<String, FlexibleGpu>§load_balancers: Vec<String>§vpns: Vec<String>§buckets: HashMap<String, OosBucket>§consumption: HashMap<String, ConsumptionEntry>

Implementations§

Source§

impl Input

Source§

impl Input

Source

pub fn fetch_digest( &mut self, from_date: &str, to_date: &str, ) -> Result<(), Box<dyn Error>>

Source

pub fn fill_digest(&self, digests: &mut HashMap<String, Digest>)

Source§

impl Input

Source

pub fn fetch_flexible_gpus(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_flexible_gpus(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_load_balancers(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_load_balancers(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_nat_services(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_nat_service(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_buckets(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_oos(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_public_ips(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_public_ip(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_snapshots(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_snapshot(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_vms(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fetch_vms_images(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fetch_vm_types(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_vm(&mut self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_volumes(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_volume(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn fetch_vpns(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fill_resource_vpns(&self, resources: &mut Resources)

Source§

impl Input

Source

pub fn new(profile_name: Option<String>) -> Result<Input, Box<dyn Error>>

Source

pub fn fetch(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn fetch_catalog(&mut self) -> Result<(), Box<dyn Error>>

Source

pub fn build_resources(&mut self) -> Resources

Trait Implementations§

Source§

impl From<Input> for Resources

Source§

fn from(input: Input) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Input

§

impl !RefUnwindSafe for Input

§

impl Send for Input

§

impl Sync for Input

§

impl Unpin for Input

§

impl UnsafeUnpin for Input

§

impl !UnwindSafe for Input

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more