pub struct Version {
pub config: Option<ServingConfig>,
pub create_time: Option<DateTime<Utc>>,
pub create_user: Option<ActingUser>,
pub delete_time: Option<DateTime<Utc>>,
pub delete_user: Option<ActingUser>,
pub file_count: Option<i64>,
pub finalize_time: Option<DateTime<Utc>>,
pub finalize_user: Option<ActingUser>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub status: Option<String>,
pub version_bytes: Option<i64>,
}Expand description
A Version is a configuration and a collection of static files which determine how a site is displayed.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- sites versions create projects (request|response)
- sites versions get projects (response)
- sites versions patch projects (request|response)
- versions create sites (request|response)
- versions get sites (response)
- versions patch sites (request|response)
Fields§
§config: Option<ServingConfig>The configuration for the behavior of the site. This configuration exists in the firebase.json file.
create_time: Option<DateTime<Utc>>Output only. The time at which the version was created.
create_user: Option<ActingUser>Output only. Identifies the user who created the version.
delete_time: Option<DateTime<Utc>>Output only. The time at which the version was DELETED.
delete_user: Option<ActingUser>Output only. Identifies the user who DELETED the version.
file_count: Option<i64>Output only. The total number of files associated with the version. This value is calculated after a version is FINALIZED.
finalize_time: Option<DateTime<Utc>>Output only. The time at which the version was FINALIZED.
finalize_user: Option<ActingUser>Output only. Identifies the user who FINALIZED the version.
labels: Option<HashMap<String, String>>The labels used for extra metadata and/or filtering.
name: Option<String>The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
status: Option<String>The deploy status of the version. For a successful deploy, call CreateVersion to make a new version (CREATED status), upload all desired files to the version, then update the version to the FINALIZED status. Note that if you leave the version in the CREATED state for more than 12 hours, the system will automatically mark the version as ABANDONED. You can also change the status of a version to DELETED by calling DeleteVersion.
version_bytes: Option<i64>Output only. The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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>,
impl RequestValue for Version
impl ResponseResult for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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