pub struct PagespeedApiFormatStringV4Args {
pub key: Option<String>,
pub rects: Option<Vec<PagespeedApiFormatStringV4ArgsRects>>,
pub secondary_rects: Option<Vec<PagespeedApiFormatStringV4ArgsSecondaryRects>>,
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<PagespeedApiFormatStringV4ArgsRects>>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<PagespeedApiFormatStringV4ArgsSecondaryRects>>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 PagespeedApiFormatStringV4Args
impl Clone for PagespeedApiFormatStringV4Args
Source§fn clone(&self) -> PagespeedApiFormatStringV4Args
fn clone(&self) -> PagespeedApiFormatStringV4Args
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PagespeedApiFormatStringV4Args
impl Default for PagespeedApiFormatStringV4Args
Source§fn default() -> PagespeedApiFormatStringV4Args
fn default() -> PagespeedApiFormatStringV4Args
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PagespeedApiFormatStringV4Args
impl<'de> Deserialize<'de> for PagespeedApiFormatStringV4Args
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 PagespeedApiFormatStringV4Args
impl Part for PagespeedApiFormatStringV4Args
Auto Trait Implementations§
impl Freeze for PagespeedApiFormatStringV4Args
impl RefUnwindSafe for PagespeedApiFormatStringV4Args
impl Send for PagespeedApiFormatStringV4Args
impl Sync for PagespeedApiFormatStringV4Args
impl Unpin for PagespeedApiFormatStringV4Args
impl UnsafeUnpin for PagespeedApiFormatStringV4Args
impl UnwindSafe for PagespeedApiFormatStringV4Args
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