Struct google_mybusiness4::api::CallToAction
source · pub struct CallToAction {
pub action_type: Option<String>,
pub url: Option<String>,
}
Expand description
An action that is performed when the user clicks through the post
This type is not used in any activity, and only used as part of another schema.
Fields§
§action_type: Option<String>
The type of action that will be performed.
url: Option<String>
The URL the user will be directed to upon clicking. This field should be left unset for Call CTA.
Trait Implementations§
source§impl Clone for CallToAction
impl Clone for CallToAction
source§fn clone(&self) -> CallToAction
fn clone(&self) -> CallToAction
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 Debug for CallToAction
impl Debug for CallToAction
source§impl Default for CallToAction
impl Default for CallToAction
source§fn default() -> CallToAction
fn default() -> CallToAction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CallToAction
impl<'de> Deserialize<'de> for CallToAction
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
source§impl Serialize for CallToAction
impl Serialize for CallToAction
impl Part for CallToAction
Auto Trait Implementations§
impl RefUnwindSafe for CallToAction
impl Send for CallToAction
impl Sync for CallToAction
impl Unpin for CallToAction
impl UnwindSafe for CallToAction
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