pub struct SlackUnfurlIdSource {
pub source: String,
pub unfurl_id: SlackUnfurlId,
}Fields§
§source: String§unfurl_id: SlackUnfurlIdImplementations§
Source§impl SlackUnfurlIdSource
impl SlackUnfurlIdSource
Sourcepub fn new(source: String, unfurl_id: SlackUnfurlId) -> Self
pub fn new(source: String, unfurl_id: SlackUnfurlId) -> Self
Creates a new SlackUnfurlIdSource from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_source(self, value: String) -> Self
pub fn with_source(self, value: String) -> Self
Returns self with source set to value.
Sourcepub fn unfurl_id(&mut self, value: SlackUnfurlId) -> &mut Self
pub fn unfurl_id(&mut self, value: SlackUnfurlId) -> &mut Self
Sets unfurl_id to value.
Sourcepub fn with_unfurl_id(self, value: SlackUnfurlId) -> Self
pub fn with_unfurl_id(self, value: SlackUnfurlId) -> Self
Returns self with unfurl_id set to value.
Trait Implementations§
Source§impl Clone for SlackUnfurlIdSource
impl Clone for SlackUnfurlIdSource
Source§impl Debug for SlackUnfurlIdSource
impl Debug for SlackUnfurlIdSource
Source§impl<'de> Deserialize<'de> for SlackUnfurlIdSource
impl<'de> Deserialize<'de> for SlackUnfurlIdSource
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 From<SlackUnfurlIdSourceInit> for SlackUnfurlIdSource
impl From<SlackUnfurlIdSourceInit> for SlackUnfurlIdSource
Source§fn from(value: SlackUnfurlIdSourceInit) -> Self
fn from(value: SlackUnfurlIdSourceInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackUnfurlIdSource
impl PartialEq for SlackUnfurlIdSource
Source§impl Serialize for SlackUnfurlIdSource
impl Serialize for SlackUnfurlIdSource
impl StructuralPartialEq for SlackUnfurlIdSource
Auto Trait Implementations§
impl Freeze for SlackUnfurlIdSource
impl RefUnwindSafe for SlackUnfurlIdSource
impl Send for SlackUnfurlIdSource
impl Sync for SlackUnfurlIdSource
impl Unpin for SlackUnfurlIdSource
impl UnsafeUnpin for SlackUnfurlIdSource
impl UnwindSafe for SlackUnfurlIdSource
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