pub struct NostrGroupDataUpdate {
pub name: Option<String>,
pub description: Option<String>,
pub image_url: Option<Option<String>>,
pub image_key: Option<Option<Vec<u8>>>,
pub image_nonce: Option<Option<Vec<u8>>>,
pub relays: Option<Vec<RelayUrl>>,
pub admins: Option<Vec<PublicKey>>,
}Expand description
Configuration for updating group data with optional fields
Fields§
§name: Option<String>Group name (optional)
description: Option<String>Group description (optional)
image_url: Option<Option<String>>URL to encrypted group image (optional, use Some(None) to clear)
image_key: Option<Option<Vec<u8>>>Key to decrypt the image (optional, use Some(None) to clear)
image_nonce: Option<Option<Vec<u8>>>Nonce to decrypt the image (optional, use Some(None) to clear)
relays: Option<Vec<RelayUrl>>Relays used by the group (optional)
admins: Option<Vec<PublicKey>>Group admins (optional)
Implementations§
Source§impl NostrGroupDataUpdate
impl NostrGroupDataUpdate
Sourcepub fn description<T>(self, description: T) -> Self
pub fn description<T>(self, description: T) -> Self
Sets the description to be updated
Sourcepub fn image_nonce(self, image_nonce: Option<Vec<u8>>) -> Self
pub fn image_nonce(self, image_nonce: Option<Vec<u8>>) -> Self
Sets the image key to be updated
Trait Implementations§
Source§impl Clone for NostrGroupDataUpdate
impl Clone for NostrGroupDataUpdate
Source§fn clone(&self) -> NostrGroupDataUpdate
fn clone(&self) -> NostrGroupDataUpdate
Returns a duplicate 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 NostrGroupDataUpdate
impl Debug for NostrGroupDataUpdate
Source§impl Default for NostrGroupDataUpdate
impl Default for NostrGroupDataUpdate
Source§fn default() -> NostrGroupDataUpdate
fn default() -> NostrGroupDataUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NostrGroupDataUpdate
impl RefUnwindSafe for NostrGroupDataUpdate
impl Send for NostrGroupDataUpdate
impl Sync for NostrGroupDataUpdate
impl Unpin for NostrGroupDataUpdate
impl UnwindSafe for NostrGroupDataUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more