Skip to main content

BehaviorFlags

Struct BehaviorFlags 

Source
pub struct BehaviorFlags {
Show 16 fields pub broadcast: Option<bool>, pub allow_unknown: Option<bool>, pub ephemeral: Option<bool>, pub approvable: Option<bool>, pub requires_subscription: Option<bool>, pub deliver_subject: Option<bool>, pub subscribable: Option<bool>, pub deliver_to_subject_owner: Option<bool>, pub default_flags: Option<String>, pub gated_by_parent_flag: Option<char>, pub gated_by_subject_flag: Option<char>, pub requires_acceptance: Option<bool>, pub local_only: Option<bool>, pub ttl: Option<u64>, pub sync: Option<bool>, pub federated: Option<bool>,
}
Expand description

Behavior flags controlling action processing

§Implementation Status

§Fully Implemented

  • broadcast - Checked in schedule_delivery() for self-posting
  • allow_unknown - Validated on both inbound (permission check) and outbound (create_action)
  • ephemeral - Skips persistence, forwards to WebSocket only
  • approvable - Enables APRV flow, auto-approve for trusted sources
  • requires_subscription - Validated on both inbound and outbound
  • deliver_subject - Delivers subject action along with main action
  • subscribable - Enables SUBS-based permissions and visibility
  • deliver_to_subject_owner - Dual delivery to subject owner
  • default_flags - Applied during action creation

§Reserved (Not Implemented)

  • requires_acceptance - RESERVED: Would set initial status to CONFIRMATION
  • local_only - RESERVED: Would skip federation in schedule_delivery
  • ttl - RESERVED: Time-to-live for action expiration
  • sync - RESERVED: Synchronous processing mode
  • federated - RESERVED: Cross-instance federation control

Fields§

§broadcast: Option<bool>

Send to all followers when posting to own wall (no audience). Checked in schedule_delivery() for self-posting.

§allow_unknown: Option<bool>

Accept actions from non-connected/non-following users. Validated on both inbound (permission check) and outbound (create_action).

§ephemeral: Option<bool>

Don’t persist to database, only forward to WebSocket. Used for real-time ephemeral actions like typing indicators.

§approvable: Option<bool>

Can this action receive APRV (approval) from audience? When true, accepting this action will generate an APRV federated signal. Also enables auto-approve for trusted sources.

§requires_subscription: Option<bool>

Child actions require SUBS (subscription) validation. Validated on both inbound and outbound flows.

§deliver_subject: Option<bool>

Deliver subject action along with this action to recipients. Used by APRV to include the approved POST when fanning out.

§subscribable: Option<bool>

This action type can have SUBS (subscriptions) pointing to it. When true, subscribers are included in visibility checks for Direct visibility. Also enables fan-out to subscribers in parent chain.

§deliver_to_subject_owner: Option<bool>

Also deliver to subject’s owner (in addition to audience). Used by INVT to deliver to both invitee and CONV home for validation.

§default_flags: Option<String>

Default flags for this action type (R/r=reactions, C/c=comments, O/o=open). Applied during action creation.

§gated_by_parent_flag: Option<char>

Flag character that gates this action on the PARENT action’s flags. If set and the parent has the lowercase version, this action is rejected. E.g., ‘C’ for CMNT: if parent has ‘c’ (comments disabled), reject.

§gated_by_subject_flag: Option<char>

Flag character that gates this action on the SUBJECT action’s flags. Same logic but checks the subject action. E.g., ‘R’ for REACT: if subject has ‘r’ (reactions disabled), reject.

§requires_acceptance: Option<bool>

RESERVED: Requires user confirmation before activation. When implemented, would set initial status to CONFIRMATION.

§local_only: Option<bool>

RESERVED: Never federate this action type. When implemented, would skip federation in schedule_delivery.

§ttl: Option<u64>

RESERVED: Time to live in seconds. When implemented, would enable automatic action expiration.

§sync: Option<bool>

RESERVED: Process synchronously. Currently only affects IDP:REG hook execution.

§federated: Option<bool>

RESERVED: Allow cross-instance federation. Default behavior is to federate; this flag is reserved for future use.

Trait Implementations§

Source§

impl Clone for BehaviorFlags

Source§

fn clone(&self) -> BehaviorFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BehaviorFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BehaviorFlags

Source§

fn default() -> BehaviorFlags

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for BehaviorFlags

Source§

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 BehaviorFlags

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Chain<T> for T

Source§

fn len(&self) -> usize

The number of items that this chain link consists of.
Source§

fn append_to(self, v: &mut Vec<T>)

Append the elements in this link to the chain.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Container<T> for T
where T: Clone,

Source§

type Iter = Once<T>

An iterator over the items within this container, by value.
Source§

fn get_iter(&self) -> <T as Container<T>>::Iter

Iterate over the elements of the container (using internal iteration because GATs are unstable).
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<M> Meta for M
where M: Default,

Source§

impl<T> OrderedContainer<T> for T
where T: Clone,