pub struct Bucket {Show 20 fields
pub id: f64,
pub name: String,
pub description: String,
pub disk_stats: Box<BucketDiskStats>,
pub type: Type,
pub preset_id: Option<f64>,
pub configurator_id: Option<f64>,
pub avatar_link: Option<String>,
pub status: Status,
pub object_amount: f64,
pub location: String,
pub hostname: String,
pub access_key: String,
pub secret_key: String,
pub moved_in_quarantine_at: Option<DateTime<FixedOffset>>,
pub storage_class: StorageClass,
pub project_id: f64,
pub rate_id: f64,
pub website_config: Option<Box<BucketWebsiteConfig>>,
pub is_allow_auto_upgrade: bool,
}Expand description
Bucket : Хранилище S3
Fields§
§id: f64ID для каждого экземпляра хранилища. Автоматически генерируется при создании.
name: StringУдобочитаемое имя, установленное для хранилища.
description: StringКомментарий к хранилищу.
disk_stats: Box<BucketDiskStats>§type: TypeТип хранилища.
preset_id: Option<f64>ID тарифа хранилища.
configurator_id: Option<f64>ID конфигуратора хранилища.
avatar_link: Option<String>Ссылка на аватар хранилища.
status: StatusСтатус хранилища.
object_amount: f64Количество файлов в хранилище.
location: StringРегион хранилища.
hostname: StringАдрес хранилища для подключения.
access_key: StringКлюч доступа от хранилища.
secret_key: StringСекретный ключ доступа от хранилища.
moved_in_quarantine_at: Option<DateTime<FixedOffset>>Дата перемещения в карантин.
storage_class: StorageClassКласс хранилища.
project_id: f64ID проекта.
rate_id: f64ID тарифа.
website_config: Option<Box<BucketWebsiteConfig>>§is_allow_auto_upgrade: boolРазрешено ли автоматическое повышение тарифа.
Implementations§
Source§impl Bucket
impl Bucket
Sourcepub fn new(
id: f64,
name: String,
description: String,
disk_stats: BucketDiskStats,
type: Type,
preset_id: Option<f64>,
configurator_id: Option<f64>,
avatar_link: Option<String>,
status: Status,
object_amount: f64,
location: String,
hostname: String,
access_key: String,
secret_key: String,
moved_in_quarantine_at: Option<DateTime<FixedOffset>>,
storage_class: StorageClass,
project_id: f64,
rate_id: f64,
website_config: Option<BucketWebsiteConfig>,
is_allow_auto_upgrade: bool,
) -> Bucket
pub fn new( id: f64, name: String, description: String, disk_stats: BucketDiskStats, type: Type, preset_id: Option<f64>, configurator_id: Option<f64>, avatar_link: Option<String>, status: Status, object_amount: f64, location: String, hostname: String, access_key: String, secret_key: String, moved_in_quarantine_at: Option<DateTime<FixedOffset>>, storage_class: StorageClass, project_id: f64, rate_id: f64, website_config: Option<BucketWebsiteConfig>, is_allow_auto_upgrade: bool, ) -> Bucket
Хранилище S3
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bucket
impl<'de> Deserialize<'de> for Bucket
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 StructuralPartialEq for Bucket
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnsafeUnpin for Bucket
impl UnwindSafe for Bucket
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