pub struct PagespeedApiFormatStringV2Args {
pub key: Option<String>,
pub rects: Option<Vec<PagespeedApiFormatStringV2ArgsRects>>,
pub secondary_rects: Option<Vec<PagespeedApiFormatStringV2ArgsSecondaryRects>>,
pub type_: Option<String>,
pub value: Option<String>,
}
Expand description
List of arguments for the format string.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<String>
The placeholder key for this arg, as a string.
rects: Option<Vec<PagespeedApiFormatStringV2ArgsRects>>
The screen rectangles being referred to, with dimensions measured in CSS pixels. This is only ever used for SNAPSHOT_RECT arguments. If this is absent for a SNAPSHOT_RECT argument, it means that that argument refers to the entire snapshot.
secondary_rects: Option<Vec<PagespeedApiFormatStringV2ArgsSecondaryRects>>
Secondary screen rectangles being referred to, with dimensions measured in CSS pixels. This is only ever used for SNAPSHOT_RECT arguments.
type_: Option<String>
Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, DURATION, VERBATIM_STRING, PERCENTAGE, HYPERLINK, or SNAPSHOT_RECT.
value: Option<String>
Argument value, as a localized string.
Trait Implementations§
source§impl Clone for PagespeedApiFormatStringV2Args
impl Clone for PagespeedApiFormatStringV2Args
source§fn clone(&self) -> PagespeedApiFormatStringV2Args
fn clone(&self) -> PagespeedApiFormatStringV2Args
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for PagespeedApiFormatStringV2Args
impl Default for PagespeedApiFormatStringV2Args
source§fn default() -> PagespeedApiFormatStringV2Args
fn default() -> PagespeedApiFormatStringV2Args
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PagespeedApiFormatStringV2Args
impl<'de> Deserialize<'de> for PagespeedApiFormatStringV2Args
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 NestedType for PagespeedApiFormatStringV2Args
impl Part for PagespeedApiFormatStringV2Args
Auto Trait Implementations§
impl RefUnwindSafe for PagespeedApiFormatStringV2Args
impl Send for PagespeedApiFormatStringV2Args
impl Sync for PagespeedApiFormatStringV2Args
impl Unpin for PagespeedApiFormatStringV2Args
impl UnwindSafe for PagespeedApiFormatStringV2Args
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