Skip to main content

Tone

Struct Tone 

Source
#[non_exhaustive]
pub struct Tone {
Show 24 fields pub id: ToneId, pub user_id: UserId, pub user: Option<EmbeddedUser>, pub title: String, pub description: Option<String>, pub gear: Option<Gear>, pub format: Option<Format>, pub license: Option<License>, pub sizes: Vec<Size>, pub images: Vec<String>, pub links: Vec<String>, pub makes: Vec<Make>, pub tags: Vec<Tag>, pub is_public: Option<bool>, pub created_at: Option<String>, pub updated_at: Option<String>, pub url: String, pub models_count: u64, pub favorites_count: u64, pub downloads_count: u64, pub a1_models_count: u64, pub a2_models_count: u64, pub irs_count: u64, pub custom_models_count: u64,
}
Expand description

A community capture project: one piece of gear, captured once, published under a title and licence.

A tone is not itself downloadable — it owns one or more Models, which are. Fetch them with Client::models.

§Two shapes, one type

Search results and tone detail return different payloads, and this struct covers both. sizes, license, links and is_public appear only in detail — in a tone that came from Client::tones they are empty or None, not absent from the server’s records. Call Client::tone when you need them.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§id: ToneId

Stable identifier, used by Client::tone and Client::models.

§user_id: UserId

The creator’s account id.

§user: Option<EmbeddedUser>

The creator, embedded. Present in both search results and detail.

§title: String

The creator’s title for the tone, e.g. “Mesa Boogie Badlander 100W EL34”.

§description: Option<String>

The creator’s write-up: rig details, capture chain, how it’s meant to be used.

§gear: Option<Gear>

What kind of thing was captured — amp, pedal, cabinet.

Distinct from format, which is how the capture is encoded.

§format: Option<Format>

The file format its models are published in, e.g. NAM or an impulse response.

§license: Option<License>

Reuse terms the creator published under. Detail onlyNone in search results.

Check this before redistributing a downloaded model or shipping it with an app.

§sizes: Vec<Size>

The distinct size classes across this tone’s models. Detail only — empty in search results.

§images: Vec<String>

Creator-uploaded photographs of the rig.

§links: Vec<String>

Related URLs the creator added, typically demo videos. Detail only — empty in search results.

§makes: Vec<Make>

The real-world gear captured. May list several for a full rig.

§tags: Vec<Tag>

Creator-applied labels.

§is_public: Option<bool>

Whether the tone is publicly listed. Detail onlyNone in search results.

§created_at: Option<String>

When the tone was published, as the API’s raw timestamp string.

Left unparsed deliberately: a transport crate should not pick a date library for you. Parse with whichever you already depend on.

§updated_at: Option<String>

When the tone was last edited, as the API’s raw timestamp string.

§url: String

The tone’s page on tone3000.com — the link to show a user.

§models_count: u64

How many models the tone has — but the API means two different things by this depending on where the tone came from.

From Client::tones (search) it is the total across every architecture. From Client::tone (detail) it is the architecture-1 count alone. Measured on three tones:

Tonevia searchvia detaila1 / a2
19633 / 3
51949633 / 3
6298223112112 / 111

So a list screen built from search results can promise 223 models while the detail screen shows 112. To count reliably, add up the per-architecture fields yourself; to list them, see Client::models.

§favorites_count: u64

How many users have favourited this tone.

§downloads_count: u64

How many times its models have been downloaded.

§a1_models_count: u64

Models trained on architecture version 1.

§a2_models_count: u64

Models trained on architecture version 2.

§irs_count: u64

Impulse responses, as opposed to neural captures.

§custom_models_count: u64

Models using a user-supplied architecture rather than a standard one.

Trait Implementations§

Source§

impl Clone for Tone

Source§

fn clone(&self) -> Tone

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Tone

Source§

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

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

impl<'de> Deserialize<'de> for Tone

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 Tone

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§

§

impl Freeze for Tone

§

impl RefUnwindSafe for Tone

§

impl Send for Tone

§

impl Sync for Tone

§

impl Unpin for Tone

§

impl UnsafeUnpin for Tone

§

impl UnwindSafe for Tone

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<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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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<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