pub struct TextPost {
pub author_urn: String,
pub text: String,
pub link: Option<Url>,
pub visibility: Option<String>,
}Available on crate feature
posts only.Expand description
Parameters for creating a simple text post.
Fields§
The actor URN (e.g., urn:li:person:... or urn:li:organization:...).
text: StringThe post text content.
link: Option<Url>Optional link to include with the post (will be appended to text for now).
visibility: Option<String>Visibility setting, default PUBLIC.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextPost
impl<'de> Deserialize<'de> for TextPost
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
Auto Trait Implementations§
impl Freeze for TextPost
impl RefUnwindSafe for TextPost
impl Send for TextPost
impl Sync for TextPost
impl Unpin for TextPost
impl UnsafeUnpin for TextPost
impl UnwindSafe for TextPost
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