pub struct State {
pub id: Uuid,
pub name: StateName,
pub created: DateTime<Utc>,
pub modified: DateTime<Utc>,
pub storage_class: Option<StorageClass>,
pub locations: StateLocations,
pub owner: Option<ClusterName>,
pub provisioning_status: ProvisioningStatus,
pub allowed_clusters: Option<Vec<ClusterName>>,
pub condition: Condition,
}
Fields§
§id: Uuid
§name: StateName
§created: DateTime<Utc>
§modified: DateTime<Utc>
§storage_class: Option<StorageClass>
§locations: StateLocations
§owner: Option<ClusterName>
§provisioning_status: ProvisioningStatus
§allowed_clusters: Option<Vec<ClusterName>>
§condition: Condition
Implementations§
Source§impl State
impl State
pub fn is_available_in(&self, location: &Location) -> bool
pub fn is_ready(&self) -> bool
pub fn all_locations(&self) -> Vec<Location>
pub fn collect_volumes( &self, ) -> HashMap<String, HashMap<Location, &VolumeLocation>>
pub fn count_volumes(&self) -> usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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